96 lines
2.3 KiB
Plaintext
96 lines
2.3 KiB
Plaintext
[gd_scene load_steps=15 format=3 uid="uid://bv2jjgk6veq4l"]
|
|
|
|
[ext_resource type="Script" path="res://Effects/Effect.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://bmfqf7no8uc14" path="res://Effects/EnemyDeathEffect.png" id="2"]
|
|
[ext_resource type="AudioStream" uid="uid://ceo7s8pddaqww" path="res://Music and Sounds/EnemyDie.wav" id="3"]
|
|
|
|
[sub_resource type="AtlasTexture" id="1"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="2"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="3"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="4"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="5"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="6"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(160, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="7"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(192, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="8"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(224, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="9"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(256, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="10"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(288, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="11"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("9")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("10")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Animate",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[node name="EnemyDeathEffect" type="AnimatedSprite2D"]
|
|
sprite_frames = SubResource("11")
|
|
animation = &"Animate"
|
|
offset = Vector2(0, -8)
|
|
script = ExtResource("1")
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("3")
|
|
autoplay = true
|
|
|
|
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|