diff options
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r-- | game/player/PlayerScript.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h new file mode 100644 index 0000000..482b40d --- /dev/null +++ b/game/player/PlayerScript.h @@ -0,0 +1,17 @@ +#pragma once + +#include <crepe/api/Event.h> +#include <crepe/api/Script.h> + +class PlayerScript : public crepe::Script { +public: + void init(); + void fixed_update(crepe::duration_t dt); + +private: + bool on_collision(const crepe::CollisionEvent & ev); + +private: + int prev_anim = 0; + int current_jetpack_sound = 0; +}; |