add some entity management in prep for global entities.
This commit is contained in:
@@ -48,6 +48,7 @@ errorret_t rpgInit(void) {
|
||||
uint8_t npcIndex = entityGetAvailable();
|
||||
entity_t *npc = &ENTITIES[npcIndex];
|
||||
entityInit(npc, ENTITY_TYPE_NPC);
|
||||
npc->globalId = ENTITY_GLOBAL_ID_START;
|
||||
npcSetMoveType(npc, NPC_MOVE_TYPE_PATH);
|
||||
entityPositionSet(npc, (worldpos_t){ 8, 8, 1 });
|
||||
npc->interact.type = ENTITY_INTERACT_CUTSCENE;
|
||||
|
||||
Reference in New Issue
Block a user