From 003c13a4ae07c3ec15a31df0f7f65e3d1ffe9ae0 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 17 May 2024 22:48:25 +0200 Subject: game fade in and out --- include/rounds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/rounds.h') diff --git a/include/rounds.h b/include/rounds.h index e13f58d..2a93f30 100644 --- a/include/rounds.h +++ b/include/rounds.h @@ -10,14 +10,17 @@ typedef enum t_round_state { ROUND_SWITCHING, } round_state; +#define FADE_IN_DURATION 3.0f + typedef struct t_zombie_round { u32 round_nr; u32 zombies; round_state state; float round_timer; + float fade_in_timer; } zombie_round; -zombie_round _current_round = {.round_nr = 12, .zombies = 0, .state = ROUND_SWITCHING}; +zombie_round _current_round = {.round_nr = 0, .zombies = 0, .state = ROUND_SWITCHING, 3.0f}; bool current_round_is_done(); void start_next_round(); -- cgit v1.2.3-70-g09d2