summaryrefslogtreecommitdiff
path: root/src/game.c
blob: e692da53f2b758fcbe0375af7253e4d92e780658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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)

	*dirtRectsCount=0;
	*directRects=NULL;

	SDL_Delay(rand()%8);
}