API reference

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

I

interfaceLdtkLevel

@codexo/exojs-ldtk / ldtk / stable

A level in the LDtk world.

11
props
0
methods
0
events
Import
import { LdtkLevel } from '@codexo/exojs-ldtk'

A level in the LDtk world.

Properties11
bgColor?: string
externalRelPath?: null | string
Relative path to this level's external .ldtkl file, or null when the project does not save levels separately - LDtk writes the key either way.
identifier: string
Human-readable level identifier (unique within the world).
iid: string
Globally unique instance id (UUID string).
layerInstances: null | readonly LdtkLayerInstanceA layer instance within a level.[]
Layer instances in this level (top-to-bottom render order). null when the level is stored in a separate .ldtkl file and has not been loaded yet.
pxHei: number
Level height in pixels.
pxWid: number
Level width in pixels.
uid: number
worldX: number
World-space X position of the level's top-left corner in pixels.
worldY: number
World-space Y position of the level's top-left corner in pixels.
Source