diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-17 22:48:25 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-17 22:48:25 +0200 |
| commit | 003c13a4ae07c3ec15a31df0f7f65e3d1ffe9ae0 (patch) | |
| tree | a56b0e1d84d297c5869e8272fcac58c298a51ed5 /include/rounds.h | |
| parent | f06351b8a04d0a68628b05bed884832840998c6c (diff) | |
game fade in and out
Diffstat (limited to 'include/rounds.h')
| -rw-r--r-- | include/rounds.h | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |
