forked from team-sg/hero-mark-2
158 lines
4.4 KiB
Text
158 lines
4.4 KiB
Text
[gd_scene load_steps=17 format=2]
|
|
|
|
[ext_resource path="res://graphics/enemy/explosion_small.png" type="Texture" id=1]
|
|
[ext_resource path="res://objects/enemy/robot_die.gd" type="Script" id=2]
|
|
[ext_resource path="res://graphics/enemy/roboturret.png" type="Texture" id=3]
|
|
[ext_resource path="res://scripts/launch_rigid.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 16, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 32, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 48, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 64, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 80, 0, 16, 16 )
|
|
|
|
[sub_resource type="SpriteFrames" id=7]
|
|
animations = [ {
|
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
|
"loop": false,
|
|
"name": "default",
|
|
"speed": 20.0
|
|
} ]
|
|
|
|
[sub_resource type="PhysicsMaterial" id=9]
|
|
bounce = 0.1
|
|
|
|
[sub_resource type="RectangleShape2D" id=8]
|
|
extents = Vector2( 3, 1 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=10]
|
|
extents = Vector2( 3, 2.5 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=11]
|
|
extents = Vector2( 2, 1.5 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=12]
|
|
extents = Vector2( 2, 1.5 )
|
|
|
|
[node name="RoboTurret" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
position = Vector2( 3, 3 )
|
|
frames = SubResource( 7 )
|
|
|
|
[node name="Barrel" type="RigidBody2D" parent="."]
|
|
position = Vector2( -2, 6 )
|
|
collision_layer = 4
|
|
mass = 2.0
|
|
physics_material_override = SubResource( 9 )
|
|
script = ExtResource( 4 )
|
|
impulse_max = 200
|
|
|
|
[node name="Sprite" type="Sprite" parent="Barrel"]
|
|
position = Vector2( -2, -2 )
|
|
texture = ExtResource( 3 )
|
|
region_enabled = true
|
|
region_rect = Rect2( -1, 9, 8, 5 )
|
|
region_filter_clip = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Barrel"]
|
|
position = Vector2( -1, -3 )
|
|
shape = SubResource( 8 )
|
|
|
|
[node name="Timer" type="Timer" parent="Barrel"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="Head" type="RigidBody2D" parent="."]
|
|
position = Vector2( -2, 6 )
|
|
collision_layer = 4
|
|
mass = 2.0
|
|
physics_material_override = SubResource( 9 )
|
|
script = ExtResource( 4 )
|
|
impulse_max = 200
|
|
|
|
[node name="Sprite" type="Sprite" parent="Head"]
|
|
position = Vector2( 6, -3 )
|
|
texture = ExtResource( 3 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 7, 8, 8, 5 )
|
|
region_filter_clip = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Head"]
|
|
position = Vector2( 5, -3.5 )
|
|
shape = SubResource( 10 )
|
|
|
|
[node name="Timer" type="Timer" parent="Head"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="BaseL" type="RigidBody2D" parent="."]
|
|
position = Vector2( -2, 6 )
|
|
collision_layer = 4
|
|
mass = 2.0
|
|
physics_material_override = SubResource( 9 )
|
|
script = ExtResource( 4 )
|
|
impulse_max = 200
|
|
|
|
[node name="Sprite" type="Sprite" parent="BaseL"]
|
|
position = Vector2( 3, 1 )
|
|
texture = ExtResource( 3 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 6, 13, 4, 3 )
|
|
region_filter_clip = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="BaseL"]
|
|
position = Vector2( 3, 0.5 )
|
|
shape = SubResource( 11 )
|
|
|
|
[node name="Timer" type="Timer" parent="BaseL"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="BaseR" type="RigidBody2D" parent="."]
|
|
position = Vector2( -2, 6 )
|
|
collision_layer = 4
|
|
mass = 2.0
|
|
physics_material_override = SubResource( 9 )
|
|
script = ExtResource( 4 )
|
|
impulse_max = 200
|
|
|
|
[node name="Sprite" type="Sprite" parent="BaseR"]
|
|
position = Vector2( 7, 1 )
|
|
texture = ExtResource( 3 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 10, 13, 4, 3 )
|
|
region_filter_clip = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="BaseR"]
|
|
position = Vector2( 7, 0.5 )
|
|
shape = SubResource( 12 )
|
|
|
|
[node name="Timer" type="Timer" parent="BaseR"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
|
|
[connection signal="timeout" from="Barrel/Timer" to="Barrel" method="queue_free"]
|
|
[connection signal="timeout" from="Head/Timer" to="Head" method="queue_free"]
|
|
[connection signal="timeout" from="BaseL/Timer" to="BaseL" method="queue_free"]
|
|
[connection signal="timeout" from="BaseR/Timer" to="BaseR" method="queue_free"]
|