summaryrefslogtreecommitdiff
path: root/src/game.c
blob: a30363f7580ce70e5d11dbe0e54ce342413be20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "game.h"
#include "TZR.h"
#include "cfg.h"

int _white = 0;
int _my_turn = 0;

void
game_init(int white)
{
	_white = white;
	_my_turn = white;
}

void
game_update(void)
{
}

void
game_draw(void)
{
	if (!_my_turn) {
		TZR_DrawSetColor(1, 1, 1);
		const TZR_Uint res[2] = {
			TZR_RES("res/clock0.bmp"),
			TZR_RES("res/clock1.bmp")
		};
		TZR_DrawImage(res[TZR_GetTick() / FPS % 2]);
	}
}