From 24af775b5041cbed67dfc84f3a0d67850a4b6a1b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 11 Dec 2022 16:14:54 +0100 Subject: pathfinding --- include/zombies.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/zombies.h') diff --git a/include/zombies.h b/include/zombies.h index 44b2956..a8a58fe 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -5,12 +5,17 @@ #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; } zombie; typedef struct t_spawner { @@ -20,11 +25,10 @@ typedef struct t_spawner { // data data that is stored on disk spawner spawner_tiles[2] = { - {9, 0, 0}, - {1, 8, 0}, + {15, 5, 999}, + {3, 8, 999}, }; - zombie zombies[50] = {0}; int max_zombies = 50; -- cgit v1.2.3-70-g09d2