Skip to content

Commit 0d47cb5

Browse files
committed
[v1.5] Neighbors + AutoLayers + Fixes
1 parent f1cc6bc commit 0d47cb5

File tree

2 files changed

+427
-94
lines changed

2 files changed

+427
-94
lines changed

datafiles/LDtkTest.ldtk

Lines changed: 78 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"doc": "https://ldtk.io/json",
66
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
77
"appAuthor": "Sebastien 'deepnight' Benard",
8-
"appVersion": "1.3.3",
8+
"appVersion": "1.5.3",
99
"url": "https://ldtk.io"
1010
},
1111
"iid": "a1125330-7820-11ed-85db-21c3ce148e1f",
12-
"jsonVersion": "1.3.3",
13-
"appBuildId": 467698,
12+
"jsonVersion": "1.5.3",
13+
"appBuildId": 473703,
1414
"nextUid": 47,
1515
"identifierStyle": "Capitalize",
1616
"toc": [],
@@ -22,6 +22,8 @@
2222
"defaultPivotX": 0,
2323
"defaultPivotY": 0,
2424
"defaultGridSize": 16,
25+
"defaultEntityWidth": 16,
26+
"defaultEntityHeight": 16,
2527
"bgColor": "#40465B",
2628
"defaultLevelBgColor": "#696A79",
2729
"minifyJson": false,
@@ -37,7 +39,7 @@
3739
"levelNamePattern": "Test%idx",
3840
"tutorialDesc": null,
3941
"customCommands": [],
40-
"flags": ["PrependIndexToLevelFileNames"],
42+
"flags": [ "ExportOldTableOfContentData", "PrependIndexToLevelFileNames" ],
4143
"defs": { "layers": [
4244
{
4345
"__type": "Entities",
@@ -62,12 +64,17 @@
6264
"parallaxScaling": true,
6365
"requiredTags": [],
6466
"excludedTags": [],
67+
"autoTilesKilledByOtherLayerUid": null,
68+
"uiFilterTags": [],
69+
"useAsyncRender": false,
6570
"intGridValues": [],
71+
"intGridValuesGroups": [],
6672
"autoRuleGroups": [],
6773
"autoSourceLayerDefUid": null,
6874
"tilesetDefUid": null,
6975
"tilePivotX": 0,
70-
"tilePivotY": 0
76+
"tilePivotY": 0,
77+
"biomeFieldUid": null
7178
},
7279
{
7380
"__type": "Tiles",
@@ -92,12 +99,17 @@
9299
"parallaxScaling": true,
93100
"requiredTags": [],
94101
"excludedTags": [],
102+
"autoTilesKilledByOtherLayerUid": null,
103+
"uiFilterTags": [],
104+
"useAsyncRender": false,
95105
"intGridValues": [],
106+
"intGridValuesGroups": [],
96107
"autoRuleGroups": [],
97108
"autoSourceLayerDefUid": null,
98109
"tilesetDefUid": 1,
99110
"tilePivotX": 0,
100-
"tilePivotY": 0
111+
"tilePivotY": 0,
112+
"biomeFieldUid": null
101113
},
102114
{
103115
"__type": "IntGrid",
@@ -122,28 +134,34 @@
122134
"parallaxScaling": true,
123135
"requiredTags": [],
124136
"excludedTags": [],
137+
"autoTilesKilledByOtherLayerUid": null,
138+
"uiFilterTags": [],
139+
"useAsyncRender": false,
125140
"intGridValues": [
126-
{ "value": 1, "identifier": "one", "color": "#000000", "tile": null },
127-
{ "value": 2, "identifier": "two", "color": "#00EEFF", "tile": null },
128-
{ "value": 3, "identifier": "three", "color": "#F5FF00", "tile": null },
129-
{ "value": 4, "identifier": "four", "color": "#001FFF", "tile": null },
130-
{ "value": 5, "identifier": "five", "color": "#FF8D00", "tile": null },
131-
{ "value": 6, "identifier": "six", "color": "#E300FF", "tile": null },
132-
{ "value": 7, "identifier": "seven", "color": "#00FF03", "tile": null },
133-
{ "value": 8, "identifier": "eight", "color": "#FF0000", "tile": null }
141+
{ "value": 1, "identifier": "one", "color": "#000000", "tile": null, "groupUid": 0 },
142+
{ "value": 2, "identifier": "two", "color": "#00EEFF", "tile": null, "groupUid": 0 },
143+
{ "value": 3, "identifier": "three", "color": "#F5FF00", "tile": null, "groupUid": 0 },
144+
{ "value": 4, "identifier": "four", "color": "#001FFF", "tile": null, "groupUid": 0 },
145+
{ "value": 5, "identifier": "five", "color": "#FF8D00", "tile": null, "groupUid": 0 },
146+
{ "value": 6, "identifier": "six", "color": "#E300FF", "tile": null, "groupUid": 0 },
147+
{ "value": 7, "identifier": "seven", "color": "#00FF03", "tile": null, "groupUid": 0 },
148+
{ "value": 8, "identifier": "eight", "color": "#FF0000", "tile": null, "groupUid": 0 }
134149
],
150+
"intGridValuesGroups": [],
135151
"autoRuleGroups": [],
136152
"autoSourceLayerDefUid": null,
137153
"tilesetDefUid": null,
138154
"tilePivotX": 0,
139-
"tilePivotY": 0
155+
"tilePivotY": 0,
156+
"biomeFieldUid": null
140157
}
141158
], "entities": [
142159
{
143160
"identifier": "LDtk_test",
144161
"uid": 32,
145162
"tags": [],
146163
"exportToToc": false,
164+
"allowOutOfBounds": false,
147165
"doc": null,
148166
"width": 32,
149167
"height": 32,
@@ -164,6 +182,7 @@
164182
"tilesetId": null,
165183
"tileRenderMode": "FitInside",
166184
"tileRect": null,
185+
"uiTileRect": null,
167186
"nineSliceBorders": [],
168187
"maxCount": 0,
169188
"limitScope": "PerLevel",
@@ -185,12 +204,15 @@
185204
"editorDisplayScale": 1,
186205
"editorDisplayPos": "Above",
187206
"editorLinkStyle": "StraightArrow",
207+
"editorDisplayColor": null,
188208
"editorAlwaysShow": true,
189209
"editorShowInWorld": true,
190210
"editorCutLongValues": true,
191211
"editorTextSuffix": null,
192212
"editorTextPrefix": null,
193213
"useForSmartColor": false,
214+
"exportToToc": false,
215+
"searchable": false,
194216
"min": 0,
195217
"max": 25,
196218
"regex": null,
@@ -219,12 +241,15 @@
219241
"editorDisplayScale": 1,
220242
"editorDisplayPos": "Above",
221243
"editorLinkStyle": "StraightArrow",
244+
"editorDisplayColor": null,
222245
"editorAlwaysShow": false,
223246
"editorShowInWorld": true,
224247
"editorCutLongValues": true,
225248
"editorTextSuffix": null,
226249
"editorTextPrefix": null,
227250
"useForSmartColor": false,
251+
"exportToToc": false,
252+
"searchable": false,
228253
"min": null,
229254
"max": null,
230255
"regex": null,
@@ -246,6 +271,7 @@
246271
"uid": 44,
247272
"tags": [],
248273
"exportToToc": false,
274+
"allowOutOfBounds": false,
249275
"doc": null,
250276
"width": 16,
251277
"height": 16,
@@ -266,6 +292,7 @@
266292
"tilesetId": null,
267293
"tileRenderMode": "FitInside",
268294
"tileRect": null,
295+
"uiTileRect": null,
269296
"nineSliceBorders": [],
270297
"maxCount": 0,
271298
"limitScope": "PerLevel",
@@ -284,15 +311,18 @@
284311
"arrayMinLength": null,
285312
"arrayMaxLength": null,
286313
"editorDisplayMode": "RefLinkBetweenCenters",
287-
"editorDisplayScale": 0,
314+
"editorDisplayScale": 1,
288315
"editorDisplayPos": "Above",
289316
"editorLinkStyle": "CurvedArrow",
317+
"editorDisplayColor": null,
290318
"editorAlwaysShow": false,
291319
"editorShowInWorld": true,
292320
"editorCutLongValues": true,
293321
"editorTextSuffix": null,
294322
"editorTextPrefix": null,
295323
"useForSmartColor": false,
324+
"exportToToc": false,
325+
"searchable": false,
296326
"min": null,
297327
"max": null,
298328
"regex": null,
@@ -318,15 +348,18 @@
318348
"arrayMinLength": 1,
319349
"arrayMaxLength": 3,
320350
"editorDisplayMode": "PointStar",
321-
"editorDisplayScale": 0,
351+
"editorDisplayScale": 1,
322352
"editorDisplayPos": "Above",
323353
"editorLinkStyle": "ZigZag",
354+
"editorDisplayColor": null,
324355
"editorAlwaysShow": false,
325356
"editorShowInWorld": true,
326357
"editorCutLongValues": true,
327358
"editorTextSuffix": null,
328359
"editorTextPrefix": null,
329360
"useForSmartColor": false,
361+
"exportToToc": false,
362+
"searchable": false,
330363
"min": null,
331364
"max": null,
332365
"regex": null,
@@ -365,14 +398,14 @@
365398
}
366399
], "enums": [
367400
{ "identifier": "PathEndaction", "uid": 7, "values": [
368-
{ "id": "Stop", "tileRect": null, "tileId": -1, "color": 16711680, "__tileSrcRect": null },
369-
{ "id": "Reverse", "tileRect": null, "tileId": -1, "color": 16766464, "__tileSrcRect": null },
370-
{ "id": "Junction", "tileRect": null, "tileId": -1, "color": 817663, "__tileSrcRect": null }
401+
{ "id": "Stop", "tileRect": null, "color": 16711680 },
402+
{ "id": "Reverse", "tileRect": null, "color": 16766464 },
403+
{ "id": "Junction", "tileRect": null, "color": 817663 }
371404
], "iconTilesetUid": null, "externalRelPath": null, "externalFileChecksum": null, "tags": [] },
372405
{ "identifier": "TestEnum", "uid": 35, "values": [
373-
{ "id": "First", "tileRect": null, "tileId": -1, "color": 0, "__tileSrcRect": null },
374-
{ "id": "Second", "tileRect": null, "tileId": -1, "color": 0, "__tileSrcRect": null },
375-
{ "id": "Third", "tileRect": null, "tileId": -1, "color": 0, "__tileSrcRect": null }
406+
{ "id": "First", "tileRect": null, "color": 0 },
407+
{ "id": "Second", "tileRect": null, "color": 0 },
408+
{ "id": "Third", "tileRect": null, "color": 0 }
376409
], "iconTilesetUid": null, "externalRelPath": null, "externalFileChecksum": null, "tags": [] }
377410
], "externalEnums": [], "levelFields": [] },
378411
"levels": [
@@ -439,11 +472,13 @@
439472
"id": "V_String",
440473
"params": ["Third"]
441474
}] }
442-
]
475+
],
476+
"__worldX": 496,
477+
"__worldY": -112
443478
},
444479
{
445480
"__identifier": "LDtk_test",
446-
"__grid": [5,9],
481+
"__grid": [7,10],
447482
"__pivot": [0,0],
448483
"__tags": [],
449484
"__tile": null,
@@ -452,14 +487,16 @@
452487
"width": 32,
453488
"height": 32,
454489
"defUid": 32,
455-
"px": [80,144],
490+
"px": [112,160],
456491
"fieldInstances": [
457492
{ "__identifier": "a", "__type": "Int", "__value": 15, "__tile": null, "defUid": 33, "realEditorValues": [{ "id": "V_Int", "params": [15] }] },
458493
{ "__identifier": "testEnum", "__type": "LocalEnum.TestEnum", "__value": "First", "__tile": null, "defUid": 36, "realEditorValues": [{
459494
"id": "V_String",
460495
"params": ["First"]
461496
}] }
462-
]
497+
],
498+
"__worldX": 288,
499+
"__worldY": -96
463500
},
464501
{
465502
"__identifier": "LDtk_test",
@@ -479,7 +516,9 @@
479516
"id": "V_String",
480517
"params": ["Second"]
481518
}] }
482-
]
519+
],
520+
"__worldX": 304,
521+
"__worldY": -176
483522
},
484523
{
485524
"__identifier": "LDtk_test",
@@ -499,7 +538,9 @@
499538
"id": "V_String",
500539
"params": ["First"]
501540
}] }
502-
]
541+
],
542+
"__worldX": 368,
543+
"__worldY": -80
503544
},
504545
{
505546
"__identifier": "Link",
@@ -533,7 +574,9 @@
533574
"id": "V_String",
534575
"params": ["11,6"]
535576
} ] }
536-
]
577+
],
578+
"__worldX": 456,
579+
"__worldY": -168
537580
}
538581
]
539582
},
@@ -593,15 +636,20 @@
593636
{ "px": [416,96], "src": [32,0], "f": 0, "t": 1, "d": [55], "a": 1 },
594637
{ "px": [0,128], "src": [32,0], "f": 0, "t": 1, "d": [56], "a": 1 },
595638
{ "px": [32,128], "src": [32,0], "f": 0, "t": 1, "d": [57], "a": 1 },
639+
{ "px": [64,128], "src": [32,96], "f": 0, "t": 13, "d": [58], "a": 1 },
596640
{ "px": [384,128], "src": [32,0], "f": 0, "t": 1, "d": [68], "a": 1 },
597641
{ "px": [416,128], "src": [32,0], "f": 0, "t": 1, "d": [69], "a": 1 },
598642
{ "px": [0,160], "src": [32,0], "f": 0, "t": 1, "d": [70], "a": 1 },
599643
{ "px": [32,160], "src": [32,0], "f": 0, "t": 1, "d": [71], "a": 1 },
644+
{ "px": [64,160], "src": [96,96], "f": 0, "t": 15, "d": [72], "a": 1 },
645+
{ "px": [352,160], "src": [64,0], "f": 0, "t": 2, "d": [81], "a": 1 },
600646
{ "px": [384,160], "src": [32,0], "f": 0, "t": 1, "d": [82], "a": 1 },
601647
{ "px": [416,160], "src": [32,0], "f": 0, "t": 1, "d": [83], "a": 1 },
602648
{ "px": [0,192], "src": [32,0], "f": 0, "t": 1, "d": [84], "a": 1 },
603649
{ "px": [32,192], "src": [32,0], "f": 0, "t": 1, "d": [85], "a": 1 },
604650
{ "px": [64,192], "src": [32,0], "f": 0, "t": 1, "d": [86], "a": 1 },
651+
{ "px": [288,192], "src": [0,32], "f": 0, "t": 4, "d": [93], "a": 1 },
652+
{ "px": [320,192], "src": [32,32], "f": 0, "t": 5, "d": [94], "a": 1 },
605653
{ "px": [352,192], "src": [32,0], "f": 0, "t": 1, "d": [95], "a": 1 },
606654
{ "px": [384,192], "src": [32,0], "f": 0, "t": 1, "d": [96], "a": 1 },
607655
{ "px": [416,192], "src": [32,0], "f": 0, "t": 1, "d": [97], "a": 1 },

0 commit comments

Comments
 (0)