npc and bandit dressup, bits of UI added, WIP NPC interaction
This commit is contained in:
@@ -67,15 +67,11 @@ void RenderWorld(World *world, D_Context *draw) {
|
||||
for(U32 i = 0; i < world->npcCount; i++) {
|
||||
NPC npc = world->npcs[i];
|
||||
if(npc.currentArea == world->player.currentArea) {
|
||||
V2f drawPos = AABB_Centre(npc.collision);
|
||||
D_Rect(draw, drawPos.x, drawPos.y, .texture = 1);
|
||||
NPCDraw(draw, &world->npcs[i]);
|
||||
}
|
||||
}
|
||||
if(world->bandit.currentArea == world->player.currentArea) {
|
||||
V2f drawPos = AABB_Centre(world->bandit.collision);
|
||||
D_Rect(draw, drawPos.x, drawPos.y, .texture = 9);
|
||||
}
|
||||
|
||||
BanditDraw(draw, &world->bandit);
|
||||
PlayerDraw(draw, &world->player);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user