This commit is contained in:
2025-06-10 21:26:00 -05:00
parent ac917901e4
commit d1b1ecf3ca
16 changed files with 458 additions and 73 deletions

View File

@ -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();