API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: stringexternalRelPath?: null | stringRelative 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: stringHuman-readable level identifier (unique within the world).
iid: stringGlobally 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: numberLevel height in pixels.
pxWid: numberLevel width in pixels.
uid: numberworldX: numberWorld-space X position of the level's top-left corner in pixels.
worldY: numberWorld-space Y position of the level's top-left corner in pixels.
Source