Skip to content

TilemapAsset

A Tiled map loaded with its tilesets, ready to spawn: loadTilemap loads it once, every scene calls spawn.

readonly map: TiledMap


readonly tilesets: LoadedTileset[]

spawn(options?): Tilemap

Spawns the map’s tiles into the world (see spawnTilemap); call it in each scene, after game.scene cleared the world.

number

Tilemap