LdtkWorld
Represents a world in an LDtk project.
A world contains multiple levels arranged according to a specific layout (Free, GridVania, LinearHorizontal, or LinearVertical).
In multi-world projects, each world acts as a separate game area or chapter. Single-world projects will have one default world containing all levels.
Instance Members
The LdtkData
object this world belongs to
User defined unique identifier
Unique instance identifer
All levels from this world. The order of this array is only relevant in LinearHorizontal
and LinearVertical
world layouts (see worldLayout
value).
Otherwise, you should refer to the worldX
,worldY
coordinates of each Level.
Width of the world grid in pixels.
Height of the world grid in pixels.
An enum that describes how levels are organized in this project (ie. linearly or in a 2D space).
Name | Type |
---|---|
identifier |
String |
Returns |
---|
LdtkLevel |
Name | Type |
---|---|
iid |
String |
Returns |
---|
LdtkLevel |
Returns |
---|
String |
Name | Type | Default |
---|---|---|
ldtkData |
LdtkData | (optional) |
json |
haxe.DynamicAccess<Dynamic> | (optional) |