Add sound effects to lever activation and enhance enemy movement detection
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bd51frym6mm7v"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bd51frym6mm7v"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_psg62"]
|
||||
[ext_resource type="Script" path="res://scripts/components/lever_component.gd" id="2_0p0wb"]
|
||||
[ext_resource type="AudioStream" uid="uid://beq14we7v3iw4" path="res://sfx/activate_lever.wav" id="3_gipby"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ke5tv"]
|
||||
size = Vector2(12, 13)
|
||||
@@ -20,8 +21,12 @@ hframes = 12
|
||||
vframes = 12
|
||||
frame = 75
|
||||
|
||||
[node name="LeverComponent" type="Node" parent="." node_paths=PackedStringArray("area2d", "sprite2d")]
|
||||
[node name="LeverComponent" type="Node" parent="." node_paths=PackedStringArray("area2d", "sprite2d", "sfx")]
|
||||
script = ExtResource("2_0p0wb")
|
||||
area2d = NodePath("..")
|
||||
sprite2d = NodePath("../Sprite2D")
|
||||
start_animation_index = 75
|
||||
sfx = NodePath("../sfx")
|
||||
|
||||
[node name="sfx" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("3_gipby")
|
||||
|
Reference in New Issue
Block a user