This commit is contained in:
2025-11-03 19:50:23 -06:00
parent f3d985ecbc
commit d4a2e059d7
16 changed files with 329 additions and 220 deletions

View File

@@ -27,11 +27,11 @@ errorret_t rpgInit(void) {
entityInit(ent, ENTITY_TYPE_PLAYER);
RPG_CAMERA.mode = RPG_CAMERA_MODE_FOLLOW_ENTITY;
RPG_CAMERA.followEntity.followEntityId = ent->id;
ent->position[0] = 4, ent->position[1] = 4;
ent->position.x = 4, ent->position.y = 4;
ent = &ENTITIES[1];
entityInit(ent, ENTITY_TYPE_NPC);
ent->position[0] = 6, ent->position[1] = 6;
ent->position.x = 6, ent->position.y = 6;
// All Good!
errorOk();
@@ -51,9 +51,6 @@ void rpgUpdate(void) {
if(ent->type == ENTITY_TYPE_NULL) continue;
entityUpdate(ent);
} while(++ent < &ENTITIES[ENTITY_COUNT]);
// Update the camera.
rpgCameraUpdate();
}
void rpgDispose(void) {