From 9b3d745274394deec35f9f2868c52aff7e2fc6c7 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 29 Jan 2025 15:55:25 +0100 Subject: [PATCH] add delay to make debugging easier --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 80201bf..8eab4ba 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ #include #include +#include "SDL_timer.h" #include "errors.h" #include "game/game.h" // #include "window/audio.h" @@ -83,8 +84,10 @@ int main(int argc, char** argv) { init(); - while (playing) + while (playing) { update(); + SDL_Delay(50); + } // cleanup of resources SDL_Quit();