add game times

This commit is contained in:
2025-02-11 11:45:19 +01:00
parent 5db3519a87
commit 3b5b7bf15b
5 changed files with 39 additions and 15 deletions

View File

@@ -9,7 +9,9 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include "SDL_render.h"
#include "SDL_timer.h"
#include "SDL_ttf.h"
#include "errors.h"
@@ -71,9 +73,10 @@ int main(int const argc, char const* const* const argv) {
init();
printf("target framerate: %u\n", 0);
while (playing) {
update();
SDL_Delay(50);
}
// cleanup of resources