summaryrefslogtreecommitdiff
path: root/src/game.c
blob: 63f61a398cd023a324f005940f5fd7b392cbaca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include "SDL/SDL_timer.h"

#include "game.h"
#include "utils.h"

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)

	printf("%p - %i\n", (void *) *directRects, *dirtRectsCount);

	SDL_Delay(rand()%8);
}