Skip to content

Documentation / @debuffjp/tilemap / FromTiledOptions

Interface: FromTiledOptions ​

Defined in: tiled.ts:72

Properties ​

collisionLayers? ​

optional collisionLayers?: string[]

Defined in: tiled.ts:81

Collision. By default: tiles with a solid/collides/oneWay property in any layer, plus every tile in layers whose collision property is true. Pass layer names to use those layers instead.


image ​

image: (path, tileset) => ImageRegion | TextureSource

Defined in: tiled.ts:74

Resolve a tileset image path (as written in the map or tileset) to a loaded image.

Parameters ​

path ​

string

tileset ​

TiledTileset

Returns ​

ImageRegion | TextureSource


tilesets? ​

optional tilesets?: Record<string, TiledTileset>

Defined in: tiled.ts:76

External tilesets (.tsj) by the source path the map references.