diff options
Diffstat (limited to 'game/main.cpp')
-rw-r--r-- | game/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/game/main.cpp b/game/main.cpp index 325b66d..95cb35c 100644 --- a/game/main.cpp +++ b/game/main.cpp @@ -1,13 +1,27 @@ +#include <cstdlib> + #include <crepe/api/Engine.h> #include <crepe/api/Script.h> +#include "EngineConfig.h" #include "GameScene.h" +#include "PreviewScene.h" +#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<MainMenuScene>(); + gameloop.add_scene<ShopMenuScene>(); gameloop.add_scene<GameScene>(); + gameloop.add_scene<PreviewScene>(); return gameloop.main(); } |