mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
add game times
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user