Skip to content

1681-engine / index / LdtkAssetOptions

Interface: LdtkAssetOptions ​

Defined in: src/assets/AssetLoader.ts:56

Extends ​

Properties ​

levels? ​

ts
optional levels?: readonly string[];

Defined in: src/assets/AssetLoader.ts:61

Which external level files to fetch with the project (by level identifier); default every one. A level left out stays loaded: false, to be fetched later and read with loadLdtkLevel.


textureKey? ​

ts
optional textureKey?: (tileset) => string;

Defined in: src/assets/AssetLoader.ts:53

The texture key a tileset's image is loaded under (default: the tileset's name).

Parameters ​

ParameterType
tilesetTileset

Returns ​

string

Inherited from ​

TilemapAssetOptions.textureKey

Released under the MIT License.