Actors can be placed on object layers on the tile map now

This commit is contained in:
2024-12-18 07:30:32 -05:00
parent dd60c90352
commit bcc96261d3
8 changed files with 226 additions and 34 deletions

View File

@@ -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;