mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
add delay to make debugging easier
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#include "SDL_timer.h"
|
||||||
#include "errors.h"
|
#include "errors.h"
|
||||||
#include "game/game.h"
|
#include "game/game.h"
|
||||||
// #include "window/audio.h"
|
// #include "window/audio.h"
|
||||||
@@ -83,8 +84,10 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
while (playing)
|
while (playing) {
|
||||||
update();
|
update();
|
||||||
|
SDL_Delay(50);
|
||||||
|
}
|
||||||
|
|
||||||
// cleanup of resources
|
// cleanup of resources
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|||||||
Reference in New Issue
Block a user