diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 12:31:46 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 12:31:46 +0200 |
| commit | f646ddb88ec19307d42729b7babdb77966449327 (patch) | |
| tree | 0f7031bf54ef2b3274380211e05bcfa66420ebe3 /include/rounds.h | |
| parent | 003c13a4ae07c3ec15a31df0f7f65e3d1ffe9ae0 (diff) | |
ingame menu & network work
Diffstat (limited to 'include/rounds.h')
| -rw-r--r-- | include/rounds.h | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |
