summaryrefslogtreecommitdiffstats
path: root/player.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-30 15:49:10 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-30 15:49:10 +0200
commit6505d89669a85dd8b0c6aa8ce5c7b21542ad9063 (patch)
tree1c0131aed7566996079fc28e158a6586f0a210b5 /player.gd
parentaa2f8723ab5b87bb357d58a0165321a2060debb3 (diff)
Add rooms
Diffstat (limited to 'player.gd')
-rw-r--r--player.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/player.gd b/player.gd
index 6e27c37..d755a86 100644
--- a/player.gd
+++ b/player.gd
@@ -119,6 +119,8 @@ func request_play_walk_sfx():
last_walk_sfx_time = now
func request_play_jump_sfx():
+ jump_audio.pitch_scale = 0.95 + 0.1 * randf()
+ jump_audio.volume_db = -0.5 + 0.5 * randf()
jump_audio.play()
func request_play_die_sfx():