diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-08 13:05:51 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-08 13:05:51 +0100 |
| commit | f8b97f2450bb789ae54a1d8d3845110342ff6134 (patch) | |
| tree | 92d25a57f60ead33c7209879e181bc01206fed69 /include/zombies.h | |
| parent | 0c44af8f6c45e5bb957f38cc3e9784ca69524261 (diff) | |
work
Diffstat (limited to 'include/zombies.h')
| -rw-r--r-- | include/zombies.h | 14 |
1 files changed, 13 insertions, 1 deletions
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; |
