Skip to content

Commit

Permalink
Merge commit 'fcdd401453f525484a9992435e5c2b404e98deff'
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jan 15, 2024
2 parents 06209ec + fcdd401 commit 72c75f1
Show file tree
Hide file tree
Showing 42 changed files with 320 additions and 131 deletions.
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_1_basic.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a22d35f0-7820-11ed-b6fd-213e885f30da",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 112,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_2_stamps.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a243f240-7820-11ed-b6fd-f550906acdc3",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 40,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_3_Mosaic.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a2533480-7820-11ed-b6fd-e9108160ae94",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 64,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_4_Assistant.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a2533480-7820-11ed-b6fd-e9108160ae94",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 652,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_5_Advanced.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a26276c0-7820-11ed-b6fd-ed05d55c9a75",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 106,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_6_OptionalRules.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a27ed860-7820-11ed-b6fd-7fbe30dcfa27",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 167,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/AutoLayers_7_Biomes.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a27ed860-7820-11ed-b6fd-7fbe30dcfa27",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 181,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/Entities.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a2a4fe00-7820-11ed-b6fd-9b53622ece75",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 198,
"identifierStyle": "Capitalize",
"toc": [{
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/SeparateLevelFiles.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a2d9f0b0-7820-11ed-b6fd-010ddaafa733",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 10,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"identifier": "World_Level_0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"identifier": "World_Level_1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"identifier": "World_Level_2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a2e6e900-7820-11ed-b6fd-61d0df8fd468",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 50,
"identifierStyle": "Capitalize",
"toc": [{
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/Typical_2D_platformer_example.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a302fc80-7820-11ed-b6fd-0944dd561895",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 107,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/Typical_TopDown_example.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a3386460-7820-11ed-b6fd-157a63b4d02d",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 170,
"identifierStyle": "Capitalize",
"toc": [{
Expand Down
6 changes: 3 additions & 3 deletions app/extraFiles/samples/WorldMap_Free_layout.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a3619740-7820-11ed-b6fd-4b64aa0352a1",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 125,
"identifierStyle": "Capitalize",
"toc": [],
Expand Down
38 changes: 31 additions & 7 deletions app/extraFiles/samples/WorldMap_GridVania_layout.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.2",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "a39fb1b0-7820-11ed-b6fd-87f9a01f3d6b",
"jsonVersion": "1.5.2",
"appBuildId": 473607,
"jsonVersion": "1.5.3",
"appBuildId": 473702,
"nextUid": 152,
"identifierStyle": "Capitalize",
"toc": [{
Expand Down Expand Up @@ -2814,7 +2814,13 @@
"entityInstances": []
}
],
"__neighbours": [ { "levelIid": "a36f8be0-66b0-11ec-9cd7-a9c628ac47cf", "dir": ">" }, { "levelIid": "a36811d0-66b0-11ec-9cd7-4367627fb745", "dir": "s" }, { "levelIid": "a36a34b0-66b0-11ec-9cd7-09ebc042e238", "dir": "w" }, { "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "e" } ]
"__neighbours": [
{ "levelIid": "a36f8be0-66b0-11ec-9cd7-a9c628ac47cf", "dir": ">" },
{ "levelIid": "a36811d0-66b0-11ec-9cd7-4367627fb745", "dir": "s" },
{ "levelIid": "a36a34b0-66b0-11ec-9cd7-09ebc042e238", "dir": "w" },
{ "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "e" },
{ "levelIid": "07caf540-66b0-11ec-a595-a55a7e13679d", "dir": "se" }
]
},
{
"identifier": "Cross_roads",
Expand Down Expand Up @@ -4162,6 +4168,7 @@
{ "levelIid": "a367c3b0-66b0-11ec-9cd7-91690c910c97", "dir": "n" },
{ "levelIid": "a36a34b0-66b0-11ec-9cd7-09ebc042e238", "dir": "w" },
{ "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "e" },
{ "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "ne" },
{ "levelIid": "07caf540-66b0-11ec-a595-a55a7e13679d", "dir": "e" }
]
},
Expand Down Expand Up @@ -9428,7 +9435,7 @@
"entityInstances": []
}
],
"__neighbours": [ { "levelIid": "9312a0d0-66b0-11ec-a595-a934707bd447", "dir": ">" }, { "levelIid": "a36c5790-66b0-11ec-9cd7-0d08d7991930", "dir": "s" }, { "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "n" } ]
"__neighbours": [ { "levelIid": "9312a0d0-66b0-11ec-a595-a934707bd447", "dir": ">" }, { "levelIid": "a36c5790-66b0-11ec-9cd7-0d08d7991930", "dir": "s" }, { "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "n" }, { "levelIid": "a3707640-66b0-11ec-9cd7-59efc6b24075", "dir": "ne" } ]
},
{
"identifier": "Sewers_trash",
Expand Down Expand Up @@ -14469,7 +14476,13 @@
"entityInstances": []
}
],
"__neighbours": [ { "levelIid": "a371aec0-66b0-11ec-9cd7-6f9e87cc2465", "dir": "e" }, { "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "w" }, { "levelIid": "a3730e50-66b0-11ec-9cd7-65c84b0f9baa", "dir": "s" }, { "levelIid": "a37690c0-66b0-11ec-9cd7-5f87e3c093eb", "dir": "s" } ]
"__neighbours": [
{ "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "sw" },
{ "levelIid": "a371aec0-66b0-11ec-9cd7-6f9e87cc2465", "dir": "e" },
{ "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "w" },
{ "levelIid": "a3730e50-66b0-11ec-9cd7-65c84b0f9baa", "dir": "s" },
{ "levelIid": "a37690c0-66b0-11ec-9cd7-5f87e3c093eb", "dir": "s" }
]
},
{
"identifier": "Shop",
Expand Down Expand Up @@ -19558,6 +19571,7 @@
],
"__neighbours": [
{ "levelIid": "9312a0d0-66b0-11ec-a595-a934707bd447", "dir": ">" },
{ "levelIid": "a36b6d30-66b0-11ec-9cd7-8145d2a69a56", "dir": "sw" },
{ "levelIid": "a36d41f0-66b0-11ec-9cd7-e962574817d4", "dir": "e" },
{ "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "w" },
{ "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "n" },
Expand Down Expand Up @@ -20343,6 +20357,7 @@
],
"__neighbours": [
{ "levelIid": "a36f8be0-66b0-11ec-9cd7-a9c628ac47cf", "dir": ">" },
{ "levelIid": "a36e7a70-66b0-11ec-9cd7-67ffb406aba0", "dir": "ne" },
{ "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "w" },
{ "levelIid": "a3707640-66b0-11ec-9cd7-59efc6b24075", "dir": "s" },
{ "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "n" },
Expand Down Expand Up @@ -23091,8 +23106,10 @@
"__neighbours": [
{ "levelIid": "a36f8be0-66b0-11ec-9cd7-a9c628ac47cf", "dir": ">" },
{ "levelIid": "a367c3b0-66b0-11ec-9cd7-91690c910c97", "dir": "w" },
{ "levelIid": "a36811d0-66b0-11ec-9cd7-4367627fb745", "dir": "sw" },
{ "levelIid": "a36e7a70-66b0-11ec-9cd7-67ffb406aba0", "dir": "e" },
{ "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "s" },
{ "levelIid": "a3730e50-66b0-11ec-9cd7-65c84b0f9baa", "dir": "se" },
{ "levelIid": "07caf540-66b0-11ec-a595-a55a7e13679d", "dir": "s" }
]
},
Expand Down Expand Up @@ -23837,7 +23854,13 @@
"entityInstances": []
}
],
"__neighbours": [ { "levelIid": "a36e7a70-66b0-11ec-9cd7-67ffb406aba0", "dir": "n" }, { "levelIid": "a3707640-66b0-11ec-9cd7-59efc6b24075", "dir": "s" }, { "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "w" }, { "levelIid": "a37690c0-66b0-11ec-9cd7-5f87e3c093eb", "dir": "e" } ]
"__neighbours": [
{ "levelIid": "a36e7a70-66b0-11ec-9cd7-67ffb406aba0", "dir": "n" },
{ "levelIid": "a3707640-66b0-11ec-9cd7-59efc6b24075", "dir": "s" },
{ "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "w" },
{ "levelIid": "a3727210-66b0-11ec-9cd7-aba0184f5034", "dir": "nw" },
{ "levelIid": "a37690c0-66b0-11ec-9cd7-5f87e3c093eb", "dir": "e" }
]
},
{
"identifier": "Flooded_rooms",
Expand Down Expand Up @@ -30081,6 +30104,7 @@
],
"__neighbours": [
{ "levelIid": "a36f8be0-66b0-11ec-9cd7-a9c628ac47cf", "dir": ">" },
{ "levelIid": "a367c3b0-66b0-11ec-9cd7-91690c910c97", "dir": "nw" },
{ "levelIid": "a36811d0-66b0-11ec-9cd7-4367627fb745", "dir": "w" },
{ "levelIid": "a36fda00-66b0-11ec-9cd7-ffa8f8d0b484", "dir": "s" },
{ "levelIid": "a370eb70-66b0-11ec-9cd7-ef1d13410308", "dir": "e" },
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldtk",
"version": "1.5.2",
"version": "1.5.3",
"main": "assets/main.js",
"productName": "LDtk",
"author": "Sebastien Benard",
Expand Down
9 changes: 9 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 1.5.3

- Fixed a crash when trying to add a newly created Entity
- Fixed crash on async painting with no default Tileset
- Fixed a crash with empty identifiers
- Fixed a potential infinite loop with empty identifiers
- On macOS, CTRL+Left click should now behave like Right Clicking for editing tools and open context menus
- Added `ne`,`nw`,`se`,`sw` corners directions for `Level.__neighbours` in JSON

# 1.5.2

- Fixed a bug with auto-layers on level edges.
Expand Down
4 changes: 2 additions & 2 deletions docs/JSON_DOC.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LDtk Json structure (version 1.5.2)
# LDtk Json structure (version 1.5.3)


<a id="ldtk-ProjectJson" name="ldtk-ProjectJson"></a>
Expand Down Expand Up @@ -79,7 +79,7 @@ Value | Type | Description
-- | -- | --
`__bgColor`<br/> ![Generic badge](https://img.shields.io/badge/Added_0.6.0-gray.svg) | String<br/><small class="color"> *Hex color "#rrggbb"* </small> | Background color of the level (same as `bgColor`, except the default value is automatically used here if its value is `null`)
`__bgPos`<br/><sup class="only">Only *If background image exists*</sup><br/> ![Generic badge](https://img.shields.io/badge/Added_0.7.0-gray.svg) | Object&nbsp;*(can&nbsp;be&nbsp;`null`)* | Position informations of the background image, if there is one.<br/> This object contains the following fields:<br/> <ul class='subFields'><li>**`cropRect`** **(Array of Float**) : *An array of 4 float values describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds. Array format: `[ cropX, cropY, cropWidth, cropHeight ]`*</li><li>**`scale`** **(Array of Float**) : *An array containing the `[scaleX,scaleY]` values of the **cropped** background image, depending on `bgPos` option.*</li><li>**`topLeftPx`** **(Array of Int**) : *An array containing the `[x,y]` pixel coordinates of the top-left corner of the **cropped** background image, depending on `bgPos` option.*</li></ul>
`__neighbours`<br/> ![Generic badge](https://img.shields.io/badge/Added_0.6.0-gray.svg) ![Generic badge](https://img.shields.io/badge/Changed_1.4.0-gray.svg) | Array&nbsp;of&nbsp;Object | An array listing all other levels touching this one on the world map. Since 1.4.0, this includes levels that overlap in the same world layer, or in nearby world layers.<br/> Only relevant for world layouts where level spatial positioning is manual (ie. GridVania, Free). For Horizontal and Vertical layouts, this array is always empty.<br/> This array contains objects with the following fields:<br/> <ul class='subFields'><li>**`dir`** **(String**) ![Generic badge](https://img.shields.io/badge/Changed_1.4.0-gray.svg) : *A single lowercase character tipping on the level location (`n`orth, `s`outh, `w`est, `e`ast).<br/> Since 1.4.0, this character value can also be `<` (neighbour depth is lower), `>` (neighbour depth is greater) or `o` (levels overlap and share the same world depth).*</li><li>**`levelIid`** **(String**) ![Generic badge](https://img.shields.io/badge/Added_1.0.0-gray.svg) : *Neighbour Instance Identifier*</li><li>**`levelUid`** **(Int *(can be `null`)***) ![Generic badge](https://img.shields.io/badge/Removed_1.2.0-gray.svg) : ***WARNING**: this deprecated value is no longer exported since version 1.2.0* ** *Replaced by: `levelIid`*</li></ul>
`__neighbours`<br/> ![Generic badge](https://img.shields.io/badge/Added_0.6.0-gray.svg) ![Generic badge](https://img.shields.io/badge/Changed_1.4.0-gray.svg) | Array&nbsp;of&nbsp;Object | An array listing all other levels touching this one on the world map. Since 1.4.0, this includes levels that overlap in the same world layer, or in nearby world layers.<br/> Only relevant for world layouts where level spatial positioning is manual (ie. GridVania, Free). For Horizontal and Vertical layouts, this array is always empty.<br/> This array contains objects with the following fields:<br/> <ul class='subFields'><li>**`dir`** **(String**) ![Generic badge](https://img.shields.io/badge/Changed_1.4.0-gray.svg) : *A lowercase string tipping on the level location (`n`orth, `s`outh, `w`est, `e`ast).<br/> Since 1.4.0, this value can also be `<` (neighbour depth is lower), `>` (neighbour depth is greater) or `o` (levels overlap and share the same world depth).<br/> Since 1.5.3, this value can also be `nw`,`ne`,`sw` or `se` for levels only touching corners.*</li><li>**`levelIid`** **(String**) ![Generic badge](https://img.shields.io/badge/Added_1.0.0-gray.svg) : *Neighbour Instance Identifier*</li><li>**`levelUid`** **(Int *(can be `null`)***) ![Generic badge](https://img.shields.io/badge/Removed_1.2.0-gray.svg) : ***WARNING**: this deprecated value is no longer exported since version 1.2.0* ** *Replaced by: `levelIid`*</li></ul>
`bgRelPath`<br/> ![Generic badge](https://img.shields.io/badge/Added_0.7.0-gray.svg) | String&nbsp;*(can&nbsp;be&nbsp;`null`)* | The *optional* relative path to the level background image.
`externalRelPath`<br/> ![Generic badge](https://img.shields.io/badge/Added_0.7.0-gray.svg) | String&nbsp;*(can&nbsp;be&nbsp;`null`)* | This value is not null if the project option "*Save levels separately*" is enabled. In this case, this **relative** path points to the level Json file.
`fieldInstances`<br/> ![Generic badge](https://img.shields.io/badge/Changed_0.8.0-gray.svg) | Array&nbsp;of&nbsp;[Field&nbsp;instance](#ldtk-FieldInstanceJson) | An array containing this level custom field values.
Expand Down

0 comments on commit 72c75f1

Please sign in to comment.