From 2f278d36afd79efafaa5ed08ef123789b5563680 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Mon, 6 Jan 2025 15:52:40 +0100 Subject: Added footstep sound --- game/player/PlayerAudioScript.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 game/player/PlayerAudioScript.h (limited to 'game/player/PlayerAudioScript.h') 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 +#include + +class PlayerAudioScript : public crepe::Script { +public: + void fixed_update(crepe::duration_t dt); + +private: + int last_row = -1; + int current_footstep = 0; +}; -- cgit v1.2.3