API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classLdtkMap

@codexo/exojs-ldtk / ldtk / stable

A parsed LDtk world document: holds the raw JSON data and the converted runtime TileMap for each level. `LdtkMap` is the parsed source model. Each LDtk level is independently convertible to a format-independent `TileMap`; access them via levels (by document order) or by name via getLevelByName. Construction is cheap — the runtime `TileMap[]` is supplied externally (built by import('./ldtkToTileMap').ldtkToTileMap). The map does **not** own tileset textures; those remain in the Loader cache.

3
props
2
methods
0
events
Import
import { LdtkMap } from '@codexo/exojs-ldtk'

A parsed LDtk world document: holds the raw JSON data and the converted runtime TileMap for each level.

`LdtkMap` is the parsed source model. Each LDtk level is independently convertible to a format-independent `TileMap`; access them via levels (by document order) or by name via getLevelByName.

Construction is cheap — the runtime `TileMap[]` is supplied externally (built by import('./ldtkToTileMap').ldtkToTileMap). The map does **not** own tileset textures; those remain in the Loader cache.

Constructors 1
new(source: string, data: LdtkData, levels: readonly TileMap[]): LdtkMap
Methods 2
destroy(): void
getLevelByName(identifier: string): TileMap | undefined
Properties 3
data: LdtkData
levels: readonly TileMap[]
source: string
Source