aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-05 14:26:19 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-05 14:26:19 +0100
commitba170d00586ab261e015cc2febbb43f9aa7ae43e (patch)
tree4b902f20aa0b10a3ac04ec2c03f46ec3449558d1 /game/mainmenu/MainMenuScene.cpp
parent5ae4e3f0e3ff1d111eaea54b7b0a0788203d9d72 (diff)
added hud
Diffstat (limited to 'game/mainmenu/MainMenuScene.cpp')
-rw-r--r--game/mainmenu/MainMenuScene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp
index e68696b..c2306b1 100644
--- a/game/mainmenu/MainMenuScene.cpp
+++ b/game/mainmenu/MainMenuScene.cpp
@@ -9,6 +9,7 @@
#include "api/GameObject.h"
#include "api/Sprite.h"
#include "manager/SaveManager.h"
+#include "../Config.h"
using namespace crepe;
using namespace std;
@@ -71,7 +72,7 @@ void MainMenuScene::load_scene(){
.world_space = false,
});
SaveManager & savemgr = this->get_save_manager();
- std::string number = std::to_string(savemgr.get<int>(MainMenuConfig::TOTAL_COINS,123).get());
+ string number = std::to_string(savemgr.get<int>(TOTAL_COINS_GAME,0).get());
float amount_number = static_cast<float>(number.size());
// savemgr.set(COIN_GAME_AMOUNT, amount);
button.create(*this,ButtonSubScene::Data{