aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-23 22:37:05 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-23 22:37:05 +0100
commit4cbd236de18446d192dd59d7c7bc4ebb78850e37 (patch)
treeea84c67e6ce8521dc151504c3e560ce0f6064f99 /game/mainmenu/MainMenuScene.cpp
parent225e873c8ac9c4c08720a69b8f2c817d22cf0071 (diff)
added shop scene with background
Diffstat (limited to 'game/mainmenu/MainMenuScene.cpp')
-rw-r--r--game/mainmenu/MainMenuScene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp
index 7a86ba5..85437db 100644
--- a/game/mainmenu/MainMenuScene.cpp
+++ b/game/mainmenu/MainMenuScene.cpp
@@ -22,13 +22,13 @@ void MainMenuScene::load_scene(){
GameObject menu = this->new_object("menu_background","",MainMenuConfig::MENU_OFFSET + MainMenuConfig::MENU_OFFSET_BACKGROUND);
menu.add_component<Sprite>(
- Asset("asset/ui/itemsButtonBlankDark.png"),
+ Asset("asset/ui/background.png"),
Sprite::Data{
.sorting_in_layer = MainMenuConfig::STARTING_SORTING_IN_LAYER+0,
- .size = {300,922},
+ .size = {300,860},
});
menu.add_component<BehaviorScript>().set_script<ShowStartScript>();
-
+
ButtonSubScene button;
vec2 pos = MainMenuConfig::MENU_OFFSET;