summaryrefslogtreecommitdiff
path: root/include/rounds.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rounds.h')
-rw-r--r--include/rounds.h5
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();