Skip to content

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 ​

LdtkTilesetDef

Returns ​

ImageRegion | TextureSource


intGrid? ​

optional intGrid?: 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? ​

optional level?: string

Defined in: ldtk.ts:71

Level identifier (e.g. "Level_0"). Default: the first level.