Actors can be placed on object layers on the tile map now
This commit is contained in:
@@ -95,8 +95,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
actor_new(&npc, "npc");
|
||||
npc.curSprite = SDL_GetPointerProperty(REGISTRY_SPRITE, "little guy facing down", NULL);
|
||||
THROW_ZERO(npc.curSprite, EXC_NULLPOINTER, "'little guy facing down' was not found in the sprite registry");
|
||||
npc.x = 320;
|
||||
npc.y = 240;
|
||||
npc.x = 0;
|
||||
npc.y = 0;
|
||||
} CATCH(EXC_NULLPOINTER) {
|
||||
SDL_Log("Attempting to setup npc: %s (%s)", EXCLIB_EXCEPTION->description, SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user