diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 11:27:15 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 11:27:15 +0100 |
commit | c35a53ff122d9ea3547ef8ae6035bd9e1b10d4cb (patch) | |
tree | 38af0734a951440ffdc7daac0e66aa1ba9b7287b /game/player/PlayerScript.h | |
parent | 2c4494e371881361e5c883e8fe6952af3400cadc (diff) | |
parent | 20ae1e9dc2043ef3c190f77dd5f9de74bcd533de (diff) |
pull max char
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; +}; |