diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:39:16 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:39:16 +0100 |
commit | 18a8813645187102fc6261b8d5be1a41c8f0dae4 (patch) | |
tree | 655c5d22027fa23af3378df2d92d4051a71be2a6 /game/main.cpp | |
parent | 0729209117a4393e66d7f5b6d83083e2d7c0694c (diff) | |
parent | d9c67da9b8c2d8d25ef4dd2c700ddc78573d3a60 (diff) |
Merge remote-tracking branch 'origin/loek/game' into niels/game
Diffstat (limited to 'game/main.cpp')
-rw-r--r-- | game/main.cpp | 8 |
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>(); |