aboutsummaryrefslogtreecommitdiff
path: root/game/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/main.cpp')
-rw-r--r--game/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/main.cpp b/game/main.cpp
index 5c050f4..a41fc99 100644
--- a/game/main.cpp
+++ b/game/main.cpp
@@ -1,6 +1,9 @@
+#include <cstdlib>
+
#include <crepe/api/Engine.h>
#include <crepe/api/Script.h>
+#include "Config.h"
#include "GameScene.h"
#include "PreviewScene.h"
#include "menus/mainmenu/MainMenuScene.h"
@@ -9,7 +12,12 @@
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>();