Skip to content

Commit 12372e3

Browse files
committed
Added 0.8.0 features
1 parent 0f9632b commit 12372e3

File tree

18 files changed

+3117
-2106
lines changed

18 files changed

+3117
-2106
lines changed

LDtkMonogame.Examples/Assets/LDtkMonogameExample.ldtk

Lines changed: 1432 additions & 1291 deletions
Large diffs are not rendered by default.

LDtkMonogame.Examples/Assets/LDtkMonogameExample/0000-Level1.ldtkl

Lines changed: 296 additions & 222 deletions
Large diffs are not rendered by default.

LDtkMonogame.Examples/Assets/LDtkMonogameExample/0001-Level2.ldtkl

Lines changed: 158 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"doc": "https://ldtk.io/json",
66
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
77
"appAuthor": "Sebastien 'deepnight' Benard",
8-
"appVersion": "0.7.2",
8+
"appVersion": "0.8.0",
99
"url": "https://ldtk.io"
1010
},
1111
"identifier": "Level2",
@@ -22,6 +22,10 @@
2222
"bgPivotY": 0.5,
2323
"__bgPos": null,
2424
"externalRelPath": null,
25+
"fieldInstances": [
26+
{ "__identifier": "Biome", "__value": null, "__type": "String", "defUid": 99, "realEditorValues": [] },
27+
{ "__identifier": "Difficulty", "__value": 1, "__type": "Int", "defUid": 100, "realEditorValues": [] }
28+
],
2529
"layerInstances": [
2630
{
2731
"__identifier": "Entities",
@@ -38,51 +42,93 @@
3842
"layerDefUid": 57,
3943
"pxOffsetX": 0,
4044
"pxOffsetY": 0,
41-
"intGrid": [],
45+
"visible": true,
46+
"intGridCsv": [],
4247
"autoLayerTiles": [],
4348
"seed": 8535430,
49+
"overrideTilesetUid": null,
4450
"gridTiles": [],
4551
"entityInstances": [
46-
{ "__identifier": "Crate", "__grid": [6,5], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [208,192], "fieldInstances": [
47-
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
48-
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
49-
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
50-
{ "__identifier": "name", "__value": "test", "__type": "String", "defUid": 65, "realEditorValues": [] },
51-
{ "__identifier": "multilines", "__value": "test", "__type": "String", "defUid": 66, "realEditorValues": [] },
52-
{ "__identifier": "color", "__value": "#000000", "__type": "Color", "defUid": 67, "realEditorValues": [] },
53-
{ "__identifier": "point", "__value": null, "__type": "Point", "defUid": 68, "realEditorValues": [] },
54-
{
55-
"__identifier": "alphabet",
56-
"__value": "C",
57-
"__type": "LocalEnum.Alphabet",
58-
"defUid": 82,
59-
"realEditorValues": [{
60-
"id": "V_String",
61-
"params": ["C"]
62-
}]
63-
}
64-
] },
65-
{ "__identifier": "Crate", "__grid": [3,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [112,224], "fieldInstances": [
66-
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
67-
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
68-
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
69-
{ "__identifier": "name", "__value": "test", "__type": "String", "defUid": 65, "realEditorValues": [] },
70-
{ "__identifier": "multilines", "__value": "test", "__type": "String", "defUid": 66, "realEditorValues": [] },
71-
{ "__identifier": "color", "__value": "#000000", "__type": "Color", "defUid": 67, "realEditorValues": [] },
72-
{ "__identifier": "point", "__value": null, "__type": "Point", "defUid": 68, "realEditorValues": [] },
73-
{
74-
"__identifier": "alphabet",
75-
"__value": "B",
76-
"__type": "LocalEnum.Alphabet",
77-
"defUid": 82,
78-
"realEditorValues": [{
79-
"id": "V_String",
80-
"params": ["B"]
81-
}]
82-
}
83-
] },
84-
{ "__identifier": "Diamond", "__grid": [1,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [48,224], "fieldInstances": [] },
85-
{ "__identifier": "Diamond", "__grid": [3,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [112,160], "fieldInstances": [] }
52+
{
53+
"__identifier": "Crate",
54+
"__grid": [6,5],
55+
"__pivot": [0.5,1],
56+
"__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] },
57+
"width": 21,
58+
"height": 21,
59+
"defUid": 56,
60+
"px": [208,192],
61+
"fieldInstances": [
62+
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
63+
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
64+
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
65+
{ "__identifier": "name", "__value": "test", "__type": "String", "defUid": 65, "realEditorValues": [] },
66+
{ "__identifier": "multilines", "__value": "test", "__type": "String", "defUid": 66, "realEditorValues": [] },
67+
{ "__identifier": "color", "__value": "#000000", "__type": "Color", "defUid": 67, "realEditorValues": [] },
68+
{ "__identifier": "point", "__value": null, "__type": "Point", "defUid": 68, "realEditorValues": [] },
69+
{
70+
"__identifier": "alphabet",
71+
"__value": "C",
72+
"__type": "LocalEnum.Alphabet",
73+
"defUid": 82,
74+
"realEditorValues": [{
75+
"id": "V_String",
76+
"params": ["C"]
77+
}]
78+
}
79+
]
80+
},
81+
{
82+
"__identifier": "Crate",
83+
"__grid": [3,6],
84+
"__pivot": [0.5,1],
85+
"__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] },
86+
"width": 21,
87+
"height": 21,
88+
"defUid": 56,
89+
"px": [112,224],
90+
"fieldInstances": [
91+
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
92+
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
93+
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
94+
{ "__identifier": "name", "__value": "test", "__type": "String", "defUid": 65, "realEditorValues": [] },
95+
{ "__identifier": "multilines", "__value": "test", "__type": "String", "defUid": 66, "realEditorValues": [] },
96+
{ "__identifier": "color", "__value": "#000000", "__type": "Color", "defUid": 67, "realEditorValues": [] },
97+
{ "__identifier": "point", "__value": null, "__type": "Point", "defUid": 68, "realEditorValues": [] },
98+
{
99+
"__identifier": "alphabet",
100+
"__value": "B",
101+
"__type": "LocalEnum.Alphabet",
102+
"defUid": 82,
103+
"realEditorValues": [{
104+
"id": "V_String",
105+
"params": ["B"]
106+
}]
107+
}
108+
]
109+
},
110+
{
111+
"__identifier": "Diamond",
112+
"__grid": [1,6],
113+
"__pivot": [0.5,1],
114+
"__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] },
115+
"width": 12,
116+
"height": 12,
117+
"defUid": 88,
118+
"px": [48,224],
119+
"fieldInstances": []
120+
},
121+
{
122+
"__identifier": "Diamond",
123+
"__grid": [3,4],
124+
"__pivot": [0.5,1],
125+
"__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] },
126+
"width": 12,
127+
"height": 12,
128+
"defUid": 88,
129+
"px": [112,160],
130+
"fieldInstances": []
131+
}
86132
]
87133
},
88134
{
@@ -100,9 +146,11 @@
100146
"layerDefUid": 50,
101147
"pxOffsetX": 0,
102148
"pxOffsetY": 0,
103-
"intGrid": [],
149+
"visible": true,
150+
"intGridCsv": [],
104151
"autoLayerTiles": [],
105152
"seed": 3057463,
153+
"overrideTilesetUid": null,
106154
"gridTiles": [
107155
{ "px": [128,64], "src": [32,32], "f": 0, "t": 8, "d": [20] },
108156
{ "px": [128,96], "src": [32,128], "f": 0, "t": 29, "d": [28] },
@@ -128,45 +176,72 @@
128176
"layerDefUid": 2,
129177
"pxOffsetX": 0,
130178
"pxOffsetY": 0,
131-
"intGrid": [
132-
{ "coordId": 0, "v": 0 },
133-
{ "coordId": 1, "v": 0 },
134-
{ "coordId": 2, "v": 0 },
135-
{ "coordId": 3, "v": 0 },
136-
{ "coordId": 4, "v": 0 },
137-
{ "coordId": 5, "v": 0 },
138-
{ "coordId": 6, "v": 0 },
139-
{ "coordId": 7, "v": 0 },
140-
{ "coordId": 8, "v": 0 },
141-
{ "coordId": 9, "v": 0 },
142-
{ "coordId": 10, "v": 0 },
143-
{ "coordId": 11, "v": 0 },
144-
{ "coordId": 12, "v": 0 },
145-
{ "coordId": 13, "v": 0 },
146-
{ "coordId": 14, "v": 0 },
147-
{ "coordId": 15, "v": 0 },
148-
{ "coordId": 16, "v": 0 },
149-
{ "coordId": 17, "v": 0 },
150-
{ "coordId": 22, "v": 0 },
151-
{ "coordId": 23, "v": 0 },
152-
{ "coordId": 24, "v": 0 },
153-
{ "coordId": 31, "v": 0 },
154-
{ "coordId": 32, "v": 0 },
155-
{ "coordId": 40, "v": 0 },
156-
{ "coordId": 43, "v": 1 },
157-
{ "coordId": 44, "v": 1 },
158-
{ "coordId": 45, "v": 1 },
159-
{ "coordId": 53, "v": 1 },
160-
{ "coordId": 54, "v": 0 },
161-
{ "coordId": 55, "v": 0 },
162-
{ "coordId": 56, "v": 0 },
163-
{ "coordId": 57, "v": 0 },
164-
{ "coordId": 58, "v": 0 },
165-
{ "coordId": 59, "v": 0 },
166-
{ "coordId": 60, "v": 0 },
167-
{ "coordId": 61, "v": 0 },
168-
{ "coordId": 62, "v": 0 },
169-
{ "coordId": 63, "v": 0 }
179+
"visible": true,
180+
"intGridCsv": [
181+
1,
182+
1,
183+
1,
184+
1,
185+
1,
186+
1,
187+
1,
188+
1,
189+
1,
190+
1,
191+
1,
192+
1,
193+
1,
194+
1,
195+
1,
196+
1,
197+
1,
198+
1,
199+
0,
200+
0,
201+
0,
202+
0,
203+
1,
204+
1,
205+
1,
206+
0,
207+
0,
208+
0,
209+
0,
210+
0,
211+
0,
212+
1,
213+
1,
214+
0,
215+
0,
216+
0,
217+
0,
218+
0,
219+
0,
220+
0,
221+
1,
222+
0,
223+
0,
224+
2,
225+
2,
226+
2,
227+
0,
228+
0,
229+
0,
230+
0,
231+
0,
232+
0,
233+
0,
234+
2,
235+
1,
236+
1,
237+
1,
238+
1,
239+
1,
240+
1,
241+
1,
242+
1,
243+
1,
244+
1
170245
],
171246
"autoLayerTiles": [
172247
{ "px": [96,96], "src": [64,256], "f": 0, "t": 154, "d": [16,27] },
@@ -224,6 +299,7 @@
224299
{ "px": [192,192], "src": [32,32], "f": 0, "t": 20, "d": [5,54] }
225300
],
226301
"seed": 3667232,
302+
"overrideTilesetUid": null,
227303
"gridTiles": [],
228304
"entityInstances": []
229305
}

0 commit comments

Comments
 (0)