diff options
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(); } |