summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 7a93832..8e49012 100644
--- a/src/game.c
+++ b/src/game.c
@@ -4,10 +4,14 @@
#include "game.h"
#include "utils.h"
-void play(tick_t tick) {
+void play(tick_t tick, int *dirtRectsCount, SDL_Rect **directRects ) {
if (tick%100==0) { printf("tick==%i\n",tick); }
//TODO : boucle de jeu principale ici (maj état de jeu)
+
+ *dirtRectsCount=0;
+ *directRects=NULL;
+
SDL_Delay(rand()%8);
}