Documentation / @debuffjp/tilemap / FromLdtkOptions
Interface: FromLdtkOptions
Defined in: ldtk.ts:69
Properties
image
image: (
relPath,tileset) =>ImageRegion|TextureSource
Defined in: ldtk.ts:73
Resolve a tileset's relative image path to a loaded image.
Parameters
relPath
string
tileset
Returns
intGrid?
optionalintGrid?:Record<number,"oneWay"|"solid"|"none">
Defined in: ldtk.ts:78
Collision from IntGrid layers. By default every non-zero IntGrid value is solid, except values whose identifier is "oneWay", "one_way" or "platform", which are one-way. Override per value here.
level?
optionallevel?:string
Defined in: ldtk.ts:71
Level identifier (e.g. "Level_0"). Default: the first level.