super basic UI constraint and alignment system with a super basic "game framework"

This commit is contained in:
2023-12-11 23:00:31 +02:00
committed by Illusion
parent 129e038c19
commit 3ab33f3f84
20 changed files with 989 additions and 414 deletions
+4 -4
View File
@@ -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;
}