aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonNextMainMenuScript.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-07 15:03:53 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-07 15:03:53 +0100
commite7ff8a9d0cff724520c4fb7a13b77e93797759cf (patch)
treec9261f172eef20857010180d82cb30e51cd6e5e8 /game/menus/ButtonNextMainMenuScript.h
parent2c4091f845513cee2de4aac652f9720c74789327 (diff)
saving coins avaiable in menu
Diffstat (limited to 'game/menus/ButtonNextMainMenuScript.h')
-rw-r--r--game/menus/ButtonNextMainMenuScript.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/game/menus/ButtonNextMainMenuScript.h b/game/menus/ButtonNextMainMenuScript.h
new file mode 100644
index 0000000..b9f70b3
--- /dev/null
+++ b/game/menus/ButtonNextMainMenuScript.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "IButtonScript.h"
+
+#include <crepe/api/Script.h>
+
+class ButtonNextMainMenuScript : public IButtonScript {
+public:
+ void init() override;
+ bool on_button_press(const crepe::ButtonPressEvent& e);
+private:
+ float velocity = 20;
+protected:
+ bool transition = false;
+};