From f8b97f2450bb789ae54a1d8d3845110342ff6134 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 8 Dec 2022 13:05:51 +0100 Subject: work --- include/zombies.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/zombies.h') diff --git a/include/zombies.h b/include/zombies.h index c9e22f1..44b2956 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -9,9 +9,21 @@ typedef struct t_zombie { bool alive; float health; - vec2f position; + vec3f position; + vec3f size; } zombie; +typedef struct t_spawner { + vec2 position; + float sec_since_last_spawn; +} spawner; + +// data data that is stored on disk +spawner spawner_tiles[2] = { + {9, 0, 0}, + {1, 8, 0}, +}; + zombie zombies[50] = {0}; int max_zombies = 50; -- cgit v1.2.3-70-g09d2