the project
the level
Readonlybackgroundcolorthe level's background color, as #rrggbb
its width in cells of the project's default grid
the container it was added to, while it is loaded
Readonlyfieldsthe level's custom fields, by name
Readonlyformatthe format's name, as registered with the level director
its height, in pixels
Readonlyidentifierthe level's identifier in LDtk
Readonlyinfothe level, and where it stands in its world
its tile layers, once it is loaded: TileLayer and PlacedTileLayer
Readonlynamethe id it is loaded by: level.load(name)
Readonlyorientationthe grid is square
Readonlyprojectthe project the level or the world belongs to
its height in cells of the project's default grid
Protectedstayedthe persistent entities that stayed when their level was taken out, by their unique id in LDtk
Readonlytileheightthe size of a cell of the project's default grid, in pixels
Readonlytilewidththe size of a cell of the project's default grid, in pixels
its width, in pixels
its left edge in the container it is added to, in pixels: 0 for a level, LDtk's world coordinate for a world
its top edge in the container it is added to, in pixels
add the level to a container: called by the level director
the container, emptied
Optionaloptions: LDtkLoadOptions
the options given to level.load
let go of what loading built: called by the level director when another level is loaded
the area it covers, in the container it is added to: from 0 for a level, in LDtk's world coordinates for a world
the bounds
the values of an IntGrid layer
the layer's identifier in LDtk
the grid, or undefined if the level has no such layer or is not loaded
its tile layers, as a Tiled map gives them: what layers holds
the tile layers in the world now, bottom-most first
the renderer of the project's default grid: cells to pixels and back
an orthogonal renderer
Protectedpopulateadd the level or the world to the container, as a Tiled map is
the container
LDtk's load options
the color behind it
adds its layers, bodies and entities
A level of an LDtk project, as the level director holds it:
level.getCurrentLevel()once it is loaded. It is loaded by its id, the project's name and the level's identifier:level.load("world:Level_0").