aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerAudioScript.h
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-06 15:52:40 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-06 15:52:40 +0100
commit2f278d36afd79efafaa5ed08ef123789b5563680 (patch)
treef6e2f4b48f1d37bad34d3cd6ef5d01861d89ad77 /game/player/PlayerAudioScript.h
parent1f799c9cab4374e75e7a629874aa922faa14dae5 (diff)
Added footstep sound
Diffstat (limited to 'game/player/PlayerAudioScript.h')
-rw-r--r--game/player/PlayerAudioScript.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/player/PlayerAudioScript.h b/game/player/PlayerAudioScript.h
new file mode 100644
index 0000000..764cb20
--- /dev/null
+++ b/game/player/PlayerAudioScript.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <crepe/api/Event.h>
+#include <crepe/api/Script.h>
+
+class PlayerAudioScript : public crepe::Script {
+public:
+ void fixed_update(crepe::duration_t dt);
+
+private:
+ int last_row = -1;
+ int current_footstep = 0;
+};