Skip to content

Commit e6fbbbd

Browse files
committed
Ldtkl documentation
1 parent e467334 commit e6fbbbd

File tree

12 files changed

+534
-280
lines changed

12 files changed

+534
-280
lines changed

LDtkMonogame.Examples/LDtkMonogame.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<OutputType>WinExe</OutputType>
4+
<OutputType>Exe</OutputType>
55
<TargetFramework>net5.0</TargetFramework>
66
<ApplicationIcon>Icon.ico</ApplicationIcon>
77
</PropertyGroup>

LDtkMonogame.Examples/Source/LDtkExample.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected override void Update(GameTime gameTime)
7373

7474
cameraPosition += new Vector3(h, v, 0) * 100 * (float)deltaTime;
7575

76-
if(keyboard.IsKeyDown(Keys.R))
76+
if(keyboard.IsKeyDown(Keys.T))
7777
{
7878
cameraZoom = 1;
7979
}
@@ -98,6 +98,12 @@ protected override void Update(GameTime gameTime)
9898
projectFile.Render(currentLevel);
9999
}
100100

101+
if(keyboard.IsKeyDown(Keys.R) == false && oldKeyboard.IsKeyDown(Keys.R))
102+
{
103+
projectFile.Reload();
104+
projectFile.Render(currentLevel);
105+
}
106+
101107
oldKeyboard = keyboard;
102108

103109
base.Update(gameTime);

LDtkMonogame.Examples/samples/AutoLayers_1_basic.ldtk

Lines changed: 243 additions & 61 deletions
Large diffs are not rendered by default.

LDtkMonogame.Examples/samples/AutoLayers_2_stamps.ldtk

Lines changed: 124 additions & 77 deletions
Large diffs are not rendered by default.

LDtkMonogame.Examples/samples/AutoLayers_3_Mosaic.ldtk

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"doc": "https://ldtk.io/json",
66
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
77
"appAuthor": "Sebastien 'deepnight' Benard",
8-
"appVersion": "0.7.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
11-
"jsonVersion": "0.7.0",
11+
"jsonVersion": "0.7.1",
1212
"defaultPivotX": 0,
1313
"defaultPivotY": 0,
1414
"defaultGridSize": 16,
@@ -683,8 +683,6 @@
683683
{ "coordId": 127, "v": 0 },
684684
{ "coordId": 128, "v": 0 },
685685
{ "coordId": 129, "v": 0 },
686-
{ "coordId": 138, "v": 0 },
687-
{ "coordId": 139, "v": 0 },
688686
{ "coordId": 140, "v": 0 },
689687
{ "coordId": 141, "v": 0 },
690688
{ "coordId": 142, "v": 0 },
@@ -884,7 +882,6 @@
884882
{ "px": [272,80], "src": [32,112], "f": 0, "t": 142, "d": [32,107] },
885883
{ "px": [16,112], "src": [32,112], "f": 0, "t": 142, "d": [32,127] },
886884
{ "px": [48,112], "src": [32,112], "f": 0, "t": 142, "d": [32,129] },
887-
{ "px": [208,112], "src": [32,112], "f": 0, "t": 142, "d": [32,139] },
888885
{ "px": [240,112], "src": [32,112], "f": 0, "t": 142, "d": [32,141] },
889886
{ "px": [272,112], "src": [32,112], "f": 0, "t": 142, "d": [32,143] },
890887
{ "px": [16,144], "src": [32,112], "f": 0, "t": 142, "d": [32,163] },
@@ -933,6 +930,7 @@
933930
{ "px": [144,96], "src": [96,128], "f": 0, "t": 166, "d": [33,117] },
934931
{ "px": [176,96], "src": [96,112], "f": 0, "t": 146, "d": [33,119] },
935932
{ "px": [192,96], "src": [80,112], "f": 0, "t": 145, "d": [33,120] },
933+
{ "px": [224,96], "src": [64,112], "f": 0, "t": 144, "d": [33,122] },
936934
{ "px": [224,112], "src": [144,112], "f": 0, "t": 149, "d": [33,140] },
937935
{ "px": [240,128], "src": [96,128], "f": 0, "t": 166, "d": [33,159] },
938936
{ "px": [0,144], "src": [64,128], "f": 0, "t": 164, "d": [33,162] },
@@ -967,7 +965,6 @@
967965
{ "px": [144,256], "src": [64,112], "f": 0, "t": 144, "d": [33,297] },
968966
{ "px": [192,256], "src": [128,112], "f": 0, "t": 148, "d": [33,300] },
969967
{ "px": [240,256], "src": [128,112], "f": 0, "t": 148, "d": [33,303] },
970-
{ "px": [192,112], "src": [0,128], "f": 0, "t": 160, "d": [19,138] },
971968
{ "px": [144,176], "src": [16,128], "f": 0, "t": 161, "d": [15,207] },
972969
{ "px": [112,208], "src": [16,128], "f": 0, "t": 161, "d": [15,241] },
973970
{ "px": [32,0], "src": [32,64], "f": 0, "t": 82, "d": [14,2] },
@@ -1048,6 +1045,10 @@
10481045
{ "px": [160,80], "src": [128,16], "f": 0, "t": 28, "d": [34,82] },
10491046
{ "px": [176,64], "src": [144,0], "f": 0, "t": 9, "d": [34,82] },
10501047
{ "px": [176,80], "src": [144,16], "f": 0, "t": 29, "d": [34,82] },
1048+
{ "px": [192,64], "src": [128,0], "f": 0, "t": 8, "d": [34,84] },
1049+
{ "px": [192,80], "src": [128,16], "f": 0, "t": 28, "d": [34,84] },
1050+
{ "px": [208,64], "src": [144,0], "f": 0, "t": 9, "d": [34,84] },
1051+
{ "px": [208,80], "src": [144,16], "f": 0, "t": 29, "d": [34,84] },
10511052
{ "px": [0,96], "src": [128,0], "f": 0, "t": 8, "d": [34,108] },
10521053
{ "px": [0,112], "src": [128,16], "f": 0, "t": 28, "d": [34,108] },
10531054
{ "px": [16,96], "src": [144,0], "f": 0, "t": 9, "d": [34,108] },
@@ -1084,10 +1085,6 @@
10841085
{ "px": [256,240], "src": [128,16], "f": 0, "t": 28, "d": [34,268] },
10851086
{ "px": [272,224], "src": [144,0], "f": 0, "t": 9, "d": [34,268] },
10861087
{ "px": [272,240], "src": [144,16], "f": 0, "t": 29, "d": [34,268] },
1087-
{ "px": [224,96], "src": [32,32], "f": 0, "t": 42, "d": [13,122] },
1088-
{ "px": [224,112], "src": [32,48], "f": 0, "t": 62, "d": [13,122] },
1089-
{ "px": [240,96], "src": [48,32], "f": 0, "t": 43, "d": [13,122] },
1090-
{ "px": [240,112], "src": [48,48], "f": 0, "t": 63, "d": [13,122] },
10911088
{ "px": [160,192], "src": [32,32], "f": 0, "t": 42, "d": [13,226] },
10921089
{ "px": [160,208], "src": [32,48], "f": 0, "t": 62, "d": [13,226] },
10931090
{ "px": [176,192], "src": [48,32], "f": 0, "t": 43, "d": [13,226] },
@@ -1123,23 +1120,7 @@
11231120
{ "px": [48,64], "src": [208,0], "f": 0, "t": 13, "d": [36,72] },
11241121
{ "px": [48,80], "src": [208,16], "f": 0, "t": 33, "d": [36,72] },
11251122
{ "px": [48,96], "src": [208,32], "f": 0, "t": 53, "d": [36,72] },
1126-
{ "px": [48,112], "src": [208,48], "f": 0, "t": 73, "d": [36,72] },
1127-
{ "px": [192,64], "src": [160,0], "f": 0, "t": 10, "d": [36,84] },
1128-
{ "px": [192,80], "src": [160,16], "f": 0, "t": 30, "d": [36,84] },
1129-
{ "px": [192,96], "src": [160,32], "f": 0, "t": 50, "d": [36,84] },
1130-
{ "px": [192,112], "src": [160,48], "f": 0, "t": 70, "d": [36,84] },
1131-
{ "px": [208,64], "src": [176,0], "f": 0, "t": 11, "d": [36,84] },
1132-
{ "px": [208,80], "src": [176,16], "f": 0, "t": 31, "d": [36,84] },
1133-
{ "px": [208,96], "src": [176,32], "f": 0, "t": 51, "d": [36,84] },
1134-
{ "px": [208,112], "src": [176,48], "f": 0, "t": 71, "d": [36,84] },
1135-
{ "px": [224,64], "src": [192,0], "f": 0, "t": 12, "d": [36,84] },
1136-
{ "px": [224,80], "src": [192,16], "f": 0, "t": 32, "d": [36,84] },
1137-
{ "px": [224,96], "src": [192,32], "f": 0, "t": 52, "d": [36,84] },
1138-
{ "px": [224,112], "src": [192,48], "f": 0, "t": 72, "d": [36,84] },
1139-
{ "px": [240,64], "src": [208,0], "f": 0, "t": 13, "d": [36,84] },
1140-
{ "px": [240,80], "src": [208,16], "f": 0, "t": 33, "d": [36,84] },
1141-
{ "px": [240,96], "src": [208,32], "f": 0, "t": 53, "d": [36,84] },
1142-
{ "px": [240,112], "src": [208,48], "f": 0, "t": 73, "d": [36,84] }
1123+
{ "px": [48,112], "src": [208,48], "f": 0, "t": 73, "d": [36,72] }
11431124
],
11441125
"seed": 6917003,
11451126
"gridTiles": [],
@@ -1168,6 +1149,7 @@
11681149
{ "px": [128,128], "src": [0,112], "f": 0, "t": 70, "d": [40,152] },
11691150
{ "px": [160,128], "src": [0,112], "f": 0, "t": 70, "d": [40,154] },
11701151
{ "px": [176,128], "src": [0,112], "f": 0, "t": 70, "d": [40,155] },
1152+
{ "px": [208,128], "src": [0,112], "f": 0, "t": 70, "d": [40,157] },
11711153
{ "px": [64,144], "src": [0,112], "f": 0, "t": 70, "d": [40,166] },
11721154
{ "px": [80,144], "src": [0,112], "f": 0, "t": 70, "d": [40,167] },
11731155
{ "px": [112,144], "src": [0,112], "f": 0, "t": 70, "d": [40,169] },
@@ -1196,6 +1178,7 @@
11961178
{ "px": [80,224], "src": [0,112], "f": 0, "t": 70, "d": [40,257] },
11971179
{ "px": [96,128], "src": [0,192], "f": 0, "t": 120, "d": [41,150] },
11981180
{ "px": [144,128], "src": [0,192], "f": 0, "t": 120, "d": [41,153] },
1181+
{ "px": [192,128], "src": [0,192], "f": 0, "t": 120, "d": [41,156] },
11991182
{ "px": [96,144], "src": [0,192], "f": 0, "t": 120, "d": [41,168] },
12001183
{ "px": [144,144], "src": [0,192], "f": 0, "t": 120, "d": [41,171] },
12011184
{ "px": [192,144], "src": [0,192], "f": 0, "t": 120, "d": [41,174] },
@@ -1209,10 +1192,10 @@
12091192
{ "px": [128,112], "src": [32,176], "f": 0, "t": 112, "d": [44,134] },
12101193
{ "px": [160,112], "src": [32,176], "f": 0, "t": 112, "d": [44,136] },
12111194
{ "px": [176,112], "src": [32,176], "f": 0, "t": 112, "d": [44,137] },
1212-
{ "px": [208,128], "src": [32,176], "f": 0, "t": 112, "d": [44,157] },
1195+
{ "px": [208,112], "src": [32,176], "f": 0, "t": 112, "d": [44,139] },
12131196
{ "px": [96,112], "src": [0,160], "f": 0, "t": 100, "d": [42,132] },
12141197
{ "px": [144,112], "src": [0,160], "f": 0, "t": 100, "d": [42,135] },
1215-
{ "px": [192,128], "src": [0,160], "f": 0, "t": 100, "d": [42,156] },
1198+
{ "px": [192,112], "src": [0,160], "f": 0, "t": 100, "d": [42,138] },
12161199
{ "px": [144,160], "src": [0,208], "f": 0, "t": 130, "d": [43,189] },
12171200
{ "px": [192,160], "src": [0,208], "f": 0, "t": 130, "d": [43,192] },
12181201
{ "px": [96,224], "src": [0,208], "f": 0, "t": 130, "d": [43,258] }

LDtkMonogame.Examples/samples/AutoLayers_4_Advanced.ldtk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"doc": "https://ldtk.io/json",
66
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
77
"appAuthor": "Sebastien 'deepnight' Benard",
8-
"appVersion": "0.7.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
11-
"jsonVersion": "0.7.0",
11+
"jsonVersion": "0.7.1",
1212
"defaultPivotX": 0,
1313
"defaultPivotY": 0,
1414
"defaultGridSize": 16,

LDtkMonogame.Examples/samples/SeparateLevelFiles.ldtk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"doc": "https://ldtk.io/json",
66
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
77
"appAuthor": "Sebastien 'deepnight' Benard",
8-
"appVersion": "0.7.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
11-
"jsonVersion": "0.7.0",
11+
"jsonVersion": "0.7.1",
1212
"defaultPivotX": 0,
1313
"defaultPivotY": 0,
1414
"defaultGridSize": 16,

LDtkMonogame.Examples/samples/SeparateLevelFiles/0000-Level_A.ldtkl

Lines changed: 15 additions & 2 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.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
1111
"identifier": "Level_A",
@@ -56,7 +56,20 @@
5656
{ "coordId": 185, "v": 0 },
5757
{ "coordId": 189, "v": 0 },
5858
{ "coordId": 200, "v": 0 },
59-
{ "coordId": 204, "v": 0 }
59+
{ "coordId": 204, "v": 0 },
60+
{ "coordId": 212, "v": 0 },
61+
{ "coordId": 227, "v": 0 },
62+
{ "coordId": 228, "v": 0 },
63+
{ "coordId": 229, "v": 0 },
64+
{ "coordId": 236, "v": 0 },
65+
{ "coordId": 237, "v": 0 },
66+
{ "coordId": 244, "v": 0 },
67+
{ "coordId": 245, "v": 0 },
68+
{ "coordId": 246, "v": 0 },
69+
{ "coordId": 247, "v": 0 },
70+
{ "coordId": 248, "v": 0 },
71+
{ "coordId": 249, "v": 0 },
72+
{ "coordId": 250, "v": 0 }
6073
],
6174
"autoLayerTiles": [],
6275
"seed": 5411700,

LDtkMonogame.Examples/samples/SeparateLevelFiles/0001-Level_B.ldtkl

Lines changed: 1 addition & 1 deletion
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.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
1111
"identifier": "Level_B",

LDtkMonogame.Examples/samples/SeparateLevelFiles/0002-Level_C.ldtkl

Lines changed: 1 addition & 1 deletion
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.0",
8+
"appVersion": "0.7.1",
99
"url": "https://ldtk.io"
1010
},
1111
"identifier": "Level_C",

0 commit comments

Comments
 (0)