aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinScript.h
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
commitb1824253875901b4fb6f4c5fee72aea6d807d370 (patch)
tree8acc156e68d48022f453dcf06b541f77a5803484 /game/coins/CoinScript.h
parente9082de7d114ce024a884cac38c545c99de4026a (diff)
parente75ca1c947f3cde19bebf15049732bc069c6e913 (diff)
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/coins/CoinScript.h')
-rw-r--r--game/coins/CoinScript.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/game/coins/CoinScript.h b/game/coins/CoinScript.h
new file mode 100644
index 0000000..5718025
--- /dev/null
+++ b/game/coins/CoinScript.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "api/Script.h"
+
+class CoinScript : public crepe::Script {
+public:
+ void init() override;
+ void fixed_update(crepe::duration_t dt) override;
+ bool on_collision(const crepe::CollisionEvent & collisionData);
+ bool save();
+
+private:
+ int amount = 0;
+};