From f646ddb88ec19307d42729b7babdb77966449327 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 18 May 2024 12:31:46 +0200 Subject: ingame menu & network work --- include/rounds.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/rounds.h') diff --git a/include/rounds.h b/include/rounds.h index 2a93f30..4edbde2 100644 --- a/include/rounds.h +++ b/include/rounds.h @@ -11,6 +11,7 @@ typedef enum t_round_state { } round_state; #define FADE_IN_DURATION 3.0f +#define FADE_OUT_DELAY_DURATION 2.0f typedef struct t_zombie_round { u32 round_nr; @@ -18,9 +19,10 @@ typedef struct t_zombie_round { round_state state; float round_timer; float fade_in_timer; + float fade_out_timer; } zombie_round; -zombie_round _current_round = {.round_nr = 0, .zombies = 0, .state = ROUND_SWITCHING, 3.0f}; +zombie_round _current_round = {.round_nr = 0, .zombies = 0, .state = ROUND_SWITCHING, FADE_IN_DURATION, FADE_OUT_DELAY_DURATION}; bool current_round_is_done(); void start_next_round(); -- cgit v1.2.3-70-g09d2