Enemy swarm movement

This commit is contained in:
2024-02-12 14:14:23 +01:00
parent c5b6dc0501
commit e69fdeed1f
15 changed files with 402 additions and 24 deletions

View File

@@ -60,6 +60,8 @@ typedef struct PlayerResources {
i64 popCapacity;
} PlayerResources;
#define MAX_SWARM_WAYPOINTS 16
typedef struct Game {
GameScreen screen;
GameScreen nextScreen;
@@ -80,6 +82,10 @@ typedef struct Game {
WaveInfo waveInfo;
ecs_entity_t keepEntity;
Vector2 swarmWaypoints[MAX_SWARM_WAYPOINTS];
i32 swamNumWaypoints;
Vector2 swarmSpawn;
BzStackAlloc stackAlloc;
struct {
BzBTNode *workerHarvest;