diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 12:10:28 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 12:10:28 +0100 |
commit | 192aea3112af0b36f6f26670e66c7e24926c579a (patch) | |
tree | ab7cf094850572d4f31e945d884339551cd8b08d /game/player/PlayerScript.h | |
parent | 46cc8767338578cbacb5a61bf50bbca71ea8e538 (diff) |
Added collision animations
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r-- | game/player/PlayerScript.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h index dfd02eb..d8eb098 100644 --- a/game/player/PlayerScript.h +++ b/game/player/PlayerScript.h @@ -1,11 +1,16 @@ #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; }; |