mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
super basic UI constraint and alignment system with a super basic "game framework"
This commit is contained in:
@@ -25,6 +25,10 @@ void timer_start(Timer *timer, float duration) {
|
||||
timer->is_running = true;
|
||||
}
|
||||
|
||||
void timer_stop(Timer *timer) {
|
||||
timer->is_running = false;
|
||||
}
|
||||
|
||||
void timer_reset(Timer *timer) {
|
||||
timer->time = get_time();
|
||||
timer->is_running = true;
|
||||
@@ -34,10 +38,6 @@ float timer_remaining(Timer *timer) {
|
||||
return timer->duration - (get_time() - timer->time);
|
||||
}
|
||||
|
||||
void timer_stop(Timer *timer) {
|
||||
timer->is_running = false;
|
||||
}
|
||||
|
||||
float timer_elapsed(Timer *timer) {
|
||||
return get_time() - timer->time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user