add death sound and refactor jump sound
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dpox5fa2pojpo"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dpox5fa2pojpo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cc1vfgnshjrgf" path="res://scripts/killzone.gd" id="1_xlapc"]
|
||||
[ext_resource type="AudioStream" uid="uid://beoigk7eu8f6a" path="res://assets/sounds/hurt.wav" id="2_kl8fp"]
|
||||
|
||||
[node name="Killzone" type="Area2D"]
|
||||
collision_mask = 2
|
||||
@@ -10,5 +11,9 @@ script = ExtResource("1_xlapc")
|
||||
wait_time = 0.6
|
||||
one_shot = true
|
||||
|
||||
[node name="Death" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("2_kl8fp")
|
||||
bus = &"SFX"
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user