aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/coins/CoinScript.h')
-rw-r--r--game/coins/CoinScript.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/game/coins/CoinScript.h b/game/coins/CoinScript.h
new file mode 100644
index 0000000..3fcee6d
--- /dev/null
+++ b/game/coins/CoinScript.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "api/Script.h"
+
+class CoinScript : public crepe::Script {
+public:
+ void init() override;
+ bool on_collision(const crepe::CollisionEvent & collisionData);
+ static constexpr const char* PLAYER_NAME = "player";
+ static constexpr const char* COIN_GAME_AMOUNT = "coin_game_amount";
+};