Added one more

This commit is contained in:
Rain Clark 2024-05-12 01:27:55 -04:00
parent a7d9a6e8bf
commit 09c63cd432
2 changed files with 16 additions and 15 deletions

View File

@ -5,6 +5,21 @@
[ext_resource type="AudioStream" uid="uid://cg6v2xvf4jkkv" path="res://assets/sfx/shoot.wav" id="3_kvryg"]
[ext_resource type="AudioStream" uid="uid://cycpanck51dqd" path="res://assets/sfx/explosion.wav" id="4_gdodt"]
[sub_resource type="Animation" id="Animation_qfhr1"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CrashSound:playing")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_ctlro"]
resource_name = "crash"
tracks/0/type = "value"
@ -34,21 +49,6 @@ tracks/1/keys = {
}]
}
[sub_resource type="Animation" id="Animation_qfhr1"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CrashSound:playing")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3jmf3"]
_data = {
"RESET": SubResource("Animation_qfhr1"),

View File

@ -47,6 +47,7 @@ func fire_gun(pos : Vector2, rot : float) -> void:
func crash():
# TODO: Maybe emit a signal that the main game node listens for "game over" state
# TODO: Make some kind of crash animation or crashed sprite
$AnimationPlayer.play("crash")