aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuConfig.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-23 21:17:45 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-23 21:17:45 +0100
commit225e873c8ac9c4c08720a69b8f2c817d22cf0071 (patch)
tree20c1539a7ea7d133fca143e922165fd7533c87fe /game/mainmenu/MainMenuConfig.h
parenta3097a20daaf58e4e3852bfb36315dc5e14d3e52 (diff)
made script reusable to switch scenes
Diffstat (limited to 'game/mainmenu/MainMenuConfig.h')
-rw-r--r--game/mainmenu/MainMenuConfig.h9
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};