From f2028cd4def82f5f6a52392ff011f6d0fa4aa315 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Tue, 7 Jan 2025 22:07:32 +0100 Subject: correct naming --- game/menus/mainmenu/TransitionStartSubScript.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 game/menus/mainmenu/TransitionStartSubScript.cpp (limited to 'game/menus/mainmenu/TransitionStartSubScript.cpp') diff --git a/game/menus/mainmenu/TransitionStartSubScript.cpp b/game/menus/mainmenu/TransitionStartSubScript.cpp new file mode 100644 index 0000000..6ad4673 --- /dev/null +++ b/game/menus/mainmenu/TransitionStartSubScript.cpp @@ -0,0 +1,15 @@ +#include "TransitionStartSubScript.h" + +#include "../MenusConfig.h" + +using namespace crepe; +using namespace std; + +void TransitionStartSubScript::fixed_update(crepe::duration_t dt){ + if(this->get_key_state(Keycode::ENTER) && this->transition == false) this->transition = true; +} + +const char* TransitionStartSubScript::get_scene_name() const { + // Provide the next scene defined in MainMenuConfig + return START_SCENE; +} -- cgit v1.2.3