[gd_scene load_steps=13 format=3 uid="uid://dg4lfkqrtedxg"]

[ext_resource type="Texture2D" uid="uid://bgtpy7rkgpt5v" path="res://assets/textures/explosion/explosion_animation_1.png" id="1_co4ui"]
[ext_resource type="Script" path="res://assets/scenes/explosion.gd" id="1_q2lxq"]
[ext_resource type="Texture2D" uid="uid://21sqipoqnfox" path="res://assets/textures/explosion/explosion_animation_2.png" id="2_sifmb"]
[ext_resource type="Texture2D" uid="uid://cfb5vxdx6ndt1" path="res://assets/textures/explosion/explosion_animation_3.png" id="3_42uc1"]
[ext_resource type="Texture2D" uid="uid://cb5p6rrecjihx" path="res://assets/textures/explosion/explosion_animation_4.png" id="4_mq835"]
[ext_resource type="Texture2D" uid="uid://cuxeht00edohj" path="res://assets/textures/explosion/explosion_animation_5.png" id="5_phsaf"]
[ext_resource type="Texture2D" uid="uid://dftc3x7vfop46" path="res://assets/textures/explosion/explosion_animation_6.png" id="6_llvbn"]
[ext_resource type="AudioStream" uid="uid://8lflu2km62jc" path="res://assets/audio/explosion_1.wav" id="8_x0t21"]

[sub_resource type="SpriteFrames" id="SpriteFrames_yqenh"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_co4ui")
}, {
"duration": 1.0,
"texture": ExtResource("2_sifmb")
}, {
"duration": 1.0,
"texture": ExtResource("3_42uc1")
}, {
"duration": 1.0,
"texture": ExtResource("4_mq835")
}, {
"duration": 1.0,
"texture": ExtResource("5_phsaf")
}, {
"duration": 1.0,
"texture": ExtResource("6_llvbn")
}],
"loop": false,
"name": &"default",
"speed": 20.0
}]

[sub_resource type="Animation" id="Animation_03hgi"]
resource_name = "explosion"
length = 0.6
tracks/0/type = "audio"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AudioStreamPlayer")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"clips": [{
"end_offset": 0.9,
"start_offset": 0.19,
"stream": ExtResource("8_x0t21")
}],
"times": PackedFloat32Array(0)
}
tracks/0/use_blend = false
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AnimatedSprite2D:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("AudioStreamPlayer:volume_db")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -80.0]
}

[sub_resource type="Animation" id="Animation_3m7yr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AnimatedSprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AudioStreamPlayer:volume_db")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-80.0]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_opklp"]
_data = {
"RESET": SubResource("Animation_3m7yr"),
"explosion": SubResource("Animation_03hgi")
}

[node name="Explosion" type="Node2D"]
script = ExtResource("1_q2lxq")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_yqenh")
frame = 1

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
volume_db = -80.0

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_opklp")
}
autoplay = "explosion"

[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]