aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerScript.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 10:37:52 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 10:37:52 +0100
commitd46548ab15699f7ae91227625302553e79a126bc (patch)
treee5b05fc99dca66512cf76cce30bf905e2213de8b /game/player/PlayerScript.h
parentc817f6ff091de9869c803868c50a9ea884ead376 (diff)
parent77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff)
merge master
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r--game/player/PlayerScript.h16
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;
+};