summaryrefslogtreecommitdiffstats
path: root/ps_normal.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-28 21:27:04 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-28 21:27:04 +0200
commitaa2f8723ab5b87bb357d58a0165321a2060debb3 (patch)
treed44d4b57d20e24c585644a92e66b2f35c0df157d /ps_normal.gd
parenta46cc0bb2268bec64b9219b10daa44f006410d46 (diff)
Add initial audio stuff
Diffstat (limited to 'ps_normal.gd')
-rw-r--r--ps_normal.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/ps_normal.gd b/ps_normal.gd
index d886e1e..4192fc8 100644
--- a/ps_normal.gd
+++ b/ps_normal.gd
@@ -20,6 +20,7 @@ func _handle(_delta: float):
p.anim_sp.set_animation("jump")
elif abs(p.velocity.x) > 0.0:
p.anim_sp.set_animation("walk")
+ p.request_play_walk_sfx()
else:
p.anim_sp.set_animation("idle")
@@ -43,6 +44,7 @@ func _handle_physics(delta: float):
# Force coyote time to expire to forbid double jumps
coyote = p.coyote_max_ms
jump_was_released = false
+ p.request_play_jump_sfx()
if not Input.is_action_pressed("jump"):
jump_was_released = true