diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 09:58:34 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 09:58:34 +0100 |
commit | b8acb539a3580bf0665fe435c55f33ba16cb507e (patch) | |
tree | 34665fbccaffef115876c2f6670fba0d70314e03 /game/main.cpp | |
parent | f8ffac3b14d41e7d1e43ffe64750d910ed333b0d (diff) |
WIP
Diffstat (limited to 'game/main.cpp')
-rw-r--r-- | game/main.cpp | 7 |
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(); } |