mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2024-11-24 21:18:21 -05:00
Added one more
This commit is contained in:
parent
a7d9a6e8bf
commit
09c63cd432
@ -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"),
|
||||
|
@ -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")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user