From 66b82a20506b53ce8dc5dde8e6ea0979a22610f0 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 15 Dec 2022 16:44:17 +0100 Subject: work --- include/zombies.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/zombies.h') diff --git a/include/zombies.h b/include/zombies.h index df5e629..c99063e 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -24,14 +24,16 @@ typedef struct t_spawner { float sec_since_last_spawn; } spawner; +#define MAX_SPAWNERS (3) // data data that is stored on disk -spawner spawner_tiles[2] = { +spawner spawner_tiles[MAX_SPAWNERS] = { {15, 5, 999}, {3, 8, 999}, + {11, 18, 999}, }; -zombie zombies[20] = {0}; -int max_zombies = 20; +#define MAX_ZOMBIES (50) +zombie zombies[MAX_ZOMBIES] = {0}; void draw_spawners(platform_window* window); void draw_zombies(platform_window* window); -- cgit v1.2.3-70-g09d2