aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu
diff options
context:
space:
mode:
Diffstat (limited to 'game/mainmenu')
-rw-r--r--game/mainmenu/MainMenuConfig.h1
-rw-r--r--game/mainmenu/MainMenuScene.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/game/mainmenu/MainMenuConfig.h b/game/mainmenu/MainMenuConfig.h
index e2ace30..fd7e922 100644
--- a/game/mainmenu/MainMenuConfig.h
+++ b/game/mainmenu/MainMenuConfig.h
@@ -2,6 +2,7 @@
#include "types.h"
#include <string>
+
struct MainMenuConfig {
//generic menu config
static constexpr unsigned int STARTING_SORTING_IN_LAYER = 7;
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp
index 8ffea70..472f190 100644
--- a/game/mainmenu/MainMenuScene.cpp
+++ b/game/mainmenu/MainMenuScene.cpp
@@ -5,6 +5,7 @@
#include "api/BehaviorScript.h"
#include "api/Camera.h"
#include "../StartSubScene.h"
+#include "../coins/CoinSubScene.h"
#include "MainMenuConfig.h"
#include "api/GameObject.h"
#include "api/Rigidbody.h"
@@ -48,8 +49,11 @@ void MainMenuScene::load_scene(){
.position = pos,
.script = ButtonSubScene::ScriptSelect::SHOP,
});
-
+ CoinSubScene coin;
+ coin.create(*this);
+ coin.create(*this);
+
//Start of map
StartSubScene start;
start.create(*this, MainMenuConfig::STARTMAP_OFFSET);