Note for playdate.graphics.tilemap:setTileAtPosition() in Inside Playdate

The note seems to be a cut and paste copy of the one for playdate.graphics.tilemap:getTileAtPosition(x, y):

Tilemaps and imagetables, like Lua arrays, are 1-based, not 0-based. tilemap:getTileAtPosition(1, 1) will get the index of the top-leftmost tile.

What was probably intended was a note related to setTileAtPosition() instead.

Thanks for catching this! I'll get a fix in to update that note.

1 Like