#ifndef INCLUDE_ZOMBIES #define INCLUDE_ZOMBIES #include #include "players.h" #include "objects.h" #include "pathfinding.h" typedef struct t_zombie { bool alive; float health; vec3f position; vec3f size; array path; array next_path; float time_since_last_path; pathfinding_request request; vec2f next2tiles[2]; } zombie; typedef struct t_spawner { vec2 position; float sec_since_last_spawn; } spawner; #define MAX_SPAWNERS (3) // data data that is stored on disk spawner spawner_tiles[MAX_SPAWNERS] = { {15, 5, 999}, {3, 8, 999}, {11, 18, 999}, }; #define MAX_ZOMBIES (50) zombie zombies[MAX_ZOMBIES] = {0}; void draw_spawners(platform_window* window); void draw_zombies(platform_window* window); void spawn_zombie(int x, int y); #endif