tile
FreeBodyEngine.core.tilemap.tile
#
Tile(position, image_id, spritesheet, chunk)
#
A single tile, backing onto its owning Chunk's underlying data array.
A Tile is a lightweight view rather than the source of truth - it
holds no state of its own beyond what it was constructed with, and every
property setter writes straight through to _chunk so the change is
reflected in the chunk's tile data immediately.
Args:
position: The tile's position, local to chunk.
image_id: The id of the image drawn for this tile.
spritesheet: The name of the spritesheet image_id is looked up in.
chunk: The chunk this tile belongs to; writes made through this
Tile are applied to chunk.