Entity
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user