aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/LoopManager.cpp5
-rw-r--r--src/crepe/api/LoopManager.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index 5879d79..454afe8 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -26,7 +26,9 @@ LoopManager::LoopManager() {
this->mediator.loop_timer = *loop_timer;
}
-void LoopManager::process_input() { this->sdl_context.handle_events(this->game_running); }
+void LoopManager::process_input() {
+
+ this->sdl_context.handle_events(this->game_running); }
void LoopManager::start() {
this->setup();
@@ -57,7 +59,6 @@ void LoopManager::setup() {
this->game_running = true;
this->loop_timer->start();
- this->loop_timer->set_target_fps(200);
}
void LoopManager::render() {
diff --git a/src/crepe/api/LoopManager.h b/src/crepe/api/LoopManager.h
index 7097ee1..2161dff 100644
--- a/src/crepe/api/LoopManager.h
+++ b/src/crepe/api/LoopManager.h
@@ -81,7 +81,7 @@ private:
*
* Renders the current state of the game to the screen.
*/
- void render();
+ virtual void render();
bool game_running = false;