NPCs
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include "assert/assert.h"
|
||||
#include "display/render.h"
|
||||
#include "raylib.h"
|
||||
#include "rpg/entity/entity.h"
|
||||
#include "rpg/world/map.h"
|
||||
|
||||
const uint16_t RENDER_WIDTH = 480;
|
||||
const uint16_t RENDER_HEIGHT = 270;
|
||||
@ -29,7 +29,7 @@ bool_t renderUpdate() {
|
||||
ClearBackground(RAYWHITE);
|
||||
DrawText("Hello, Dusk!", 10, 10, 20, BLACK);
|
||||
|
||||
entity_t *ent = ENTITIES;
|
||||
entity_t *ent = MAP.entities;
|
||||
do {
|
||||
if(ent->type == ENTITY_TYPE_NULL) {
|
||||
ent++;
|
||||
@ -83,7 +83,7 @@ bool_t renderUpdate() {
|
||||
}
|
||||
|
||||
ent++;
|
||||
} while(ent < (ENTITIES + ENTITY_COUNT));
|
||||
} while(ent < (MAP.entities + MAP_ENTITY_COUNT));
|
||||
|
||||
EndDrawing();
|
||||
|
||||
|
Reference in New Issue
Block a user