diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-23 21:17:45 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-23 21:17:45 +0100 |
commit | 225e873c8ac9c4c08720a69b8f2c817d22cf0071 (patch) | |
tree | 20c1539a7ea7d133fca143e922165fd7533c87fe /game/mainmenu/MainMenuConfig.h | |
parent | a3097a20daaf58e4e3852bfb36315dc5e14d3e52 (diff) |
made script reusable to switch scenes
Diffstat (limited to 'game/mainmenu/MainMenuConfig.h')
-rw-r--r-- | game/mainmenu/MainMenuConfig.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/game/mainmenu/MainMenuConfig.h b/game/mainmenu/MainMenuConfig.h index 8992ce7..75b81db 100644 --- a/game/mainmenu/MainMenuConfig.h +++ b/game/mainmenu/MainMenuConfig.h @@ -6,13 +6,18 @@ struct MainMenuConfig { //generic menu config static constexpr unsigned int STARTING_SORTING_IN_LAYER = 7; static constexpr const char* CAMERA_NAME = "camera"; - static constexpr const char* START_SCENE = "scene1"; //main menu config static constexpr float STARTMAP_OFFSET = 50; static constexpr crepe::vec2 MENU_OFFSET = {-400,-200}; static constexpr float MENU_BUTTON_SPACING = 10; static constexpr crepe::vec2 MENU_OFFSET_BACKGROUND = {0,+200}; - + // Moving to new scene (Start and Preview) + static constexpr const char* START_SCENE = "scene1"; + static constexpr const char* PREVIEW_SCENE = "scene1"; + static constexpr float SLOW_DOWN = 200; + static constexpr float END = 300; + static constexpr float VELOCITY_MAX = 200; + static constexpr float VELOCITY_STEP = 200; //button config static constexpr const char* FONT = "Garuda"; static constexpr crepe::vec2 FONTOFFSET = {0,0}; |