From 7bcee4f662b20b8e2e7183bb6bd4cb061fa14e12 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 22 Dec 2024 00:11:56 +0100 Subject: added menu buttons + scene switching --- game/mainmenu/MainMenuConfig.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 game/mainmenu/MainMenuConfig.h (limited to 'game/mainmenu/MainMenuConfig.h') diff --git a/game/mainmenu/MainMenuConfig.h b/game/mainmenu/MainMenuConfig.h new file mode 100644 index 0000000..8992ce7 --- /dev/null +++ b/game/mainmenu/MainMenuConfig.h @@ -0,0 +1,22 @@ +#pragma once +#include "types.h" +#include + +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}; + + //button config + static constexpr const char* FONT = "Garuda"; + static constexpr crepe::vec2 FONTOFFSET = {0,0}; + static constexpr crepe::vec2 LARGE_OVERLAY_SIZE = {250,100}; + static constexpr crepe::vec2 SIDE_PANEL_SIZE = {50,150}; +}; + -- cgit v1.2.3