aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-30 21:02:27 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-30 21:02:27 +0100
commit6ae0b9038e432869b506cbdfe2779e97d3732d87 (patch)
tree7fadff8dd2125c48422ab10c6faa532650f8327a /src/crepe/api/LoopManager.cpp
parent1520cb55ad714583c3903f2988b0fdc38ede9c18 (diff)
improved animator
Diffstat (limited to 'src/crepe/api/LoopManager.cpp')
-rw-r--r--src/crepe/api/LoopManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index 7edf4d1..88ca704 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -58,6 +58,7 @@ void LoopManager::setup() {
this->game_running = true;
LoopTimer::get_instance().start();
LoopTimer::get_instance().set_fps(200);
+ this->scene_manager.load_next_scene();
}
void LoopManager::render() {
@@ -66,4 +67,7 @@ void LoopManager::render() {
}
}
-void LoopManager::update() { LoopTimer & timer = LoopTimer::get_instance(); }
+void LoopManager::update() {
+ LoopTimer & timer = LoopTimer::get_instance();
+ this->get_system<AnimatorSystem>().update();
+}