|
@@ -1,4 +1,4 @@
|
|
-[gd_scene load_steps=10 format=3 uid="uid://dg4lfkqrtedxg"]
|
|
|
|
|
|
+[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="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="Script" path="res://assets/scenes/explosion.gd" id="1_q2lxq"]
|
|
@@ -7,7 +7,7 @@
|
|
[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://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://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="Texture2D" uid="uid://dftc3x7vfop46" path="res://assets/textures/explosion/explosion_animation_6.png" id="6_llvbn"]
|
|
-[ext_resource type="AudioStream" uid="uid://c8e6a4uxb6qql" path="res://assets/audio/explosionCrunch_000.ogg" id="7_x5vbv"]
|
|
|
|
|
|
+[ext_resource type="AudioStream" uid="uid://8lflu2km62jc" path="res://assets/audio/explosion_1.wav" id="8_x0t21"]
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_yqenh"]
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_yqenh"]
|
|
animations = [{
|
|
animations = [{
|
|
@@ -32,21 +32,100 @@ animations = [{
|
|
}],
|
|
}],
|
|
"loop": false,
|
|
"loop": false,
|
|
"name": &"default",
|
|
"name": &"default",
|
|
-"speed": 10.0
|
|
|
|
|
|
+"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"]
|
|
[node name="Explosion" type="Node2D"]
|
|
script = ExtResource("1_q2lxq")
|
|
script = ExtResource("1_q2lxq")
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
scale = Vector2(0.6, 0.6)
|
|
scale = Vector2(0.6, 0.6)
|
|
sprite_frames = SubResource("SpriteFrames_yqenh")
|
|
sprite_frames = SubResource("SpriteFrames_yqenh")
|
|
-autoplay = "default"
|
|
|
|
-frame = 5
|
|
|
|
-frame_progress = 1.0
|
|
|
|
|
|
+frame = 1
|
|
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
-stream = ExtResource("7_x5vbv")
|
|
|
|
-autoplay = true
|
|
|
|
|
|
+volume_db = -80.0
|
|
|
|
+
|
|
|
|
+[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
+libraries = {
|
|
|
|
+"": SubResource("AnimationLibrary_opklp")
|
|
|
|
+}
|
|
|
|
+autoplay = "explosion"
|
|
|
|
|
|
-[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_animation_finished"]
|
|
|
|
|
|
+[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]
|