Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TiledMap

What readTiledMap returns.

Property Type Description
bounds PlaneBounds The rectangle the tiles cover, for a camera’s bounds.
layers readonly TiledLayer[] Each tile layer in Tiled’s order, the first drawn first.
objectLayers readonly TiledObjectLayer[] -
properties TiledProperties -
size readonly [number, number] Its width and height in metres, for the flat map under it.
tileSets readonly TileSet[] The tile sets the layers draw with, an embedded one read over its handle, in the map’s order.