feat: Basic NPC wandering

This commit is contained in:
2025-10-05 00:25:37 +01:00
parent 249109f117
commit ab96fa3eeb
7 changed files with 35129 additions and 5 deletions

View File

@@ -1,10 +1,24 @@
#if !defined(LD_GAME_WORLD_H_)
#define LD_GAME_WORLD_H_
#include "player.h"
#include "npc.h"
// Areas are which
enum AREA {
WORLD_AREA_OUTSIDE = 1,
WORLD_AREA_SALOON = 1 << 1,
};
typedef struct World World;
struct World {
NPC[128] npcs;
u32 npcCount;
U32 npcCount;
NPC npcs[128];
NavMesh navMesh;
// NPC points of interest, places to walk to.
U32 npcPOI[256];
};
function void updateWorld(F32 delta, World *world);
function void UpdateNPCs(F32 delta, World *world);
#endif // LD_GAME_WORLD_H_