summaryrefslogtreecommitdiff
path: root/include/zombies.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
commit24af775b5041cbed67dfc84f3a0d67850a4b6a1b (patch)
tree8858ba5158aa7a4b78e12ecbd17b509afda3f9d7 /include/zombies.h
parent4933a7c038087ae465e588fafb392a57d7f92b87 (diff)
pathfinding
Diffstat (limited to 'include/zombies.h')
-rw-r--r--include/zombies.h10
1 files changed, 7 insertions, 3 deletions
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;