diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 |
commit | ceb41b7ae7e2734af954364b319fc0b6f2a86c2f (patch) | |
tree | f7544f5f68236be02eb96a7d381bce9ad41845dc /game/player/PlayerScript.h | |
parent | e9cba1baee564d835b8a3473a9cb146825f56732 (diff) | |
parent | 77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r-- | game/player/PlayerScript.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h new file mode 100644 index 0000000..d8eb098 --- /dev/null +++ b/game/player/PlayerScript.h @@ -0,0 +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; +}; |