aboutsummaryrefslogtreecommitdiff
path: root/game/main.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 09:58:34 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 09:58:34 +0100
commitb8acb539a3580bf0665fe435c55f33ba16cb507e (patch)
tree34665fbccaffef115876c2f6670fba0d70314e03 /game/main.cpp
parentf8ffac3b14d41e7d1e43ffe64750d910ed333b0d (diff)
WIP
Diffstat (limited to 'game/main.cpp')
-rw-r--r--game/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/game/main.cpp b/game/main.cpp
index bd5ca93..b6458b8 100644
--- a/game/main.cpp
+++ b/game/main.cpp
@@ -1,3 +1,5 @@
+#include <cstdlib>
+
#include <crepe/api/Engine.h>
#include <crepe/api/Script.h>
@@ -6,16 +8,17 @@
#include "menus/mainmenu/MainMenuScene.h"
#include "menus/shop/ShopMenuScene.h"
-
using namespace crepe;
int main() {
+ srand(time(NULL));
+
Config::get_instance() = ENGINE_CONFIG;
Engine gameloop;
+ gameloop.add_scene<GameScene>();
gameloop.add_scene<MainMenuScene>();
gameloop.add_scene<ShopMenuScene>();
- gameloop.add_scene<GameScene>();
return gameloop.main();
}