feat: initial bandit and more npc tweaks

This commit is contained in:
2025-10-05 14:42:19 +01:00
parent 175f4da59b
commit 1f97d81133
8 changed files with 212 additions and 27 deletions

View File

@@ -2,6 +2,7 @@
#define LD_GAME_WORLD_H_
#include "player.h"
#include "npc.h"
#include "bandit.h"
// Areas are which
enum AREA {
@@ -11,14 +12,27 @@ enum AREA {
typedef struct World World;
struct World {
//// Static stuff
NavMesh navMesh;
//// Player
Player player;
//// NPCs
U32 npcCount;
NPC npcs[128];
NavMesh navMesh;
////Bandit
// The bandit the player is after.
Bandit bandit;
// NPC points of interest, places to walk to.
U32 npcPOI[256];
};
function void updateWorld(F32 delta, World *world);
function void UpdateWorld(F32 delta, World *world);
function void ProcessEvents(SDL_Event *event, World *world);
function void UpdateNPCs(F32 delta, World *world);
function void updateNPC(F32 delta, NPC *npc, World *world);
#endif // LD_GAME_WORLD_H_