timer start at first click
This commit is contained in:
parent
f6901505af
commit
cf34d87fc1
5
main.c
5
main.c
|
@ -321,7 +321,10 @@ int main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (game_state == PLAYING) {
|
if (game_state == PLAYING) {
|
||||||
timer += GetFrameTime();
|
if (need_to_fill)
|
||||||
|
timer = 0;
|
||||||
|
else
|
||||||
|
timer += GetFrameTime();
|
||||||
snprintf(timer_text, sizeof(timer_text), "%d", (int) timer);
|
snprintf(timer_text, sizeof(timer_text), "%d", (int) timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue