aboutsummaryrefslogtreecommitdiff
path: root/src/example/replay.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:19:57 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:19:57 +0100
commit000062b462a3af86db4dac4d8c9e5ef32feb2996 (patch)
treed766704f5862520ead6a03656103dd2fbcce99e9 /src/example/replay.cpp
parent359ad8db97305856f4cfdade1cd1dada78a7a635 (diff)
split up loopmanager into SystemManager and Engine
Diffstat (limited to 'src/example/replay.cpp')
-rw-r--r--src/example/replay.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/example/replay.cpp b/src/example/replay.cpp
index 2f9c63e..11413fa 100644
--- a/src/example/replay.cpp
+++ b/src/example/replay.cpp
@@ -5,7 +5,7 @@
#include <crepe/api/Config.h>
#include <crepe/api/Event.h>
#include <crepe/api/GameObject.h>
-#include <crepe/api/LoopManager.h>
+#include <crepe/api/Engine.h>
#include <crepe/api/Rigidbody.h>
#include <crepe/api/Scene.h>
#include <crepe/api/Script.h>
@@ -95,9 +95,10 @@ public:
int main(int argc, char * argv[]) {
Config & cfg = Config::get_instance();
cfg.log.level = Log::Level::DEBUG;
- LoopManager gameloop;
- gameloop.add_scene<TestScene>();
- gameloop.start();
+ Engine engine;
+
+ engine.add_scene<TestScene>();
+ engine.start();
return 0;
}