[src/main.c] TIMER_ANY :sry:
This commit is contained in:
parent
40fe31ccb6
commit
149af5c0e0
|
@ -74,7 +74,7 @@ int main(void)
|
|||
player_x = start_x;
|
||||
player_y = start_y;
|
||||
//fps cap timer
|
||||
timer_setup(0, timer_delay(0, 1000000/FPS, TIMER_Pphi_4), 0, callback, &has_ticked);
|
||||
timer_setup(TIMER_ANY, 1000000/FPS, callback, &has_ticked);
|
||||
timer_start(0);
|
||||
while (game_loop) {
|
||||
while(!has_ticked) sleep();
|
||||
|
|
Loading…
Reference in New Issue