Restored some stuff

This commit is contained in:
2026-06-25 11:53:15 -05:00
parent a162002af2
commit 26fcaf6e75
20 changed files with 273 additions and 62 deletions
+8
View File
@@ -13,6 +13,7 @@
#include "rpgcamera.h"
#include "rpgtextbox.h"
#include "util/memory.h"
#include "util/string.h"
#include "assert/assert.h"
errorret_t rpgInit(void) {
@@ -37,6 +38,13 @@ errorret_t rpgInit(void) {
RPG_CAMERA.mode = RPG_CAMERA_MODE_FOLLOW_ENTITY;
RPG_CAMERA.followEntity.followEntityId = ent->id;
uint8_t npcIndex = entityGetAvailable();
entity_t *npc = &ENTITIES[npcIndex];
entityInit(npc, ENTITY_TYPE_NPC);
npc->position = (worldpos_t){ 3, 3, 0 };
npc->interact.type = ENTITY_INTERACT_PRINT;
stringCopy(npc->interact.data.message, "hello world", 32);
// All Good!
errorOk();
}