diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
| commit | 0c44af8f6c45e5bb957f38cc3e9784ca69524261 (patch) | |
| tree | 49d01710686e5818532552e1346129d7beda616b /include/zombies.h | |
work
Diffstat (limited to 'include/zombies.h')
| -rw-r--r-- | include/zombies.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/zombies.h b/include/zombies.h new file mode 100644 index 0000000..c9e22f1 --- /dev/null +++ b/include/zombies.h @@ -0,0 +1,23 @@ +#ifndef INCLUDE_ZOMBIES +#define INCLUDE_ZOMBIES + +#include <projectbase/project_base.h> + +#include "players.h" +#include "objects.h" + +typedef struct t_zombie { + bool alive; + float health; + vec2f position; +} zombie; + + +zombie zombies[50] = {0}; +int max_zombies = 50; + +void draw_spawners(platform_window* window); +void draw_zombies_at_tile(platform_window* window, int x, int y); +void spawn_zombie(int x, int y); + +#endif
\ No newline at end of file |
