Fixed timer

This commit is contained in:
KikooDX 2020-05-16 12:37:10 +02:00
parent ab1895a9f2
commit 7df1ed843c
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ void erase_tile(int x, int y, char level[])
void draw_timer(unsigned int step)
{
dprint(0, 0, C_WHITE, C_BLACK, "%u.%02u", step/FPS, step%FPS);
dprint(0, 0, C_WHITE, C_BLACK, "%u.%02u", (step*2)/FPS, (step*2)%FPS);
}
void just_breathe(unsigned int step)

View File

@ -71,7 +71,7 @@ int main(void)
has_ticked = 0;
//START DRAW
step++;
if (step % 2)
if (!(step % 2))
{
DRAW_LEVEL();
draw_player(player_x, player_y);