aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ShowStartScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/mainmenu/ShowStartScript.cpp')
-rw-r--r--game/mainmenu/ShowStartScript.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/game/mainmenu/ShowStartScript.cpp b/game/mainmenu/ShowStartScript.cpp
new file mode 100644
index 0000000..7179038
--- /dev/null
+++ b/game/mainmenu/ShowStartScript.cpp
@@ -0,0 +1,21 @@
+#include "ShowStartScript.h"
+#include "MainMenuConfig.h"
+#include "api/Event.h"
+#include "iostream"
+
+using namespace crepe;
+using namespace std;
+
+
+void ShowStartScript::init(){
+ cout << "script init" << endl;
+}
+
+void ShowStartScript::fixed_update(crepe::duration_t dt){
+ if(this->get_key_state(Keycode::ENTER) && this->transition == false) this->transition = true;
+}
+
+const char* ShowStartScript::get_scene_name() const {
+ // Provide the next scene defined in MainMenuConfig
+ return MainMenuConfig::START_SCENE;
+}