finaly got ldtkgo to work!

This commit is contained in:
2024-03-11 18:31:01 +01:00
parent af19ccb833
commit 1d9164d140
7 changed files with 266 additions and 50 deletions

View File

@@ -11,7 +11,7 @@
"iid": "267e9380-d7b0-11ee-a97e-35bec9c19d52",
"jsonVersion": "1.5.3",
"appBuildId": 473703,
"nextUid": 11,
"nextUid": 15,
"identifierStyle": "Capitalize",
"toc": [],
"worldLayout": "Free",
@@ -113,7 +113,7 @@
}
], "entities": [
{
"identifier": "Player_Primary",
"identifier": "PlayerPrimary",
"uid": 3,
"tags": [],
"exportToToc": false,
@@ -183,7 +183,7 @@
"fieldDefs": []
},
{
"identifier": "Obstacle_West",
"identifier": "ObstacleWest",
"uid": 7,
"tags": [],
"exportToToc": false,
@@ -218,7 +218,7 @@
"fieldDefs": []
},
{
"identifier": "Obstacle_East",
"identifier": "ObstacleEast",
"uid": 8,
"tags": [],
"exportToToc": false,
@@ -253,7 +253,7 @@
"fieldDefs": []
},
{
"identifier": "Obstacle_North",
"identifier": "ObstacleNorth",
"uid": 9,
"tags": [],
"exportToToc": false,
@@ -288,7 +288,7 @@
"fieldDefs": []
},
{
"identifier": "Obstacle_South",
"identifier": "ObstacleSouth",
"uid": 10,
"tags": [],
"exportToToc": false,
@@ -342,10 +342,165 @@
"savedSelections": [],
"cachedPixelData": { "opaqueTiles": "110000000000000", "averageColors": "f777f766f766f9533c965c355c355c354b355c35987d687d1b4700000000" }
}
], "enums": [], "externalEnums": [], "levelFields": [] },
], "enums": [], "externalEnums": [], "levelFields": [
{
"identifier": "level",
"doc": null,
"__type": "Int",
"uid": 11,
"type": "F_Int",
"isArray": false,
"canBeNull": false,
"arrayMinLength": null,
"arrayMaxLength": null,
"editorDisplayMode": "Hidden",
"editorDisplayScale": 1,
"editorDisplayPos": "Above",
"editorLinkStyle": "StraightArrow",
"editorDisplayColor": null,
"editorAlwaysShow": false,
"editorShowInWorld": true,
"editorCutLongValues": true,
"editorTextSuffix": null,
"editorTextPrefix": null,
"useForSmartColor": false,
"exportToToc": false,
"searchable": false,
"min": null,
"max": null,
"regex": null,
"acceptFileTypes": null,
"defaultOverride": { "id": "V_Int", "params": [1] },
"textLanguageMode": null,
"symmetricalRef": false,
"autoChainRef": true,
"allowOutOfLevelRef": true,
"allowedRefs": "OnlySame",
"allowedRefsEntityUid": null,
"allowedRefTags": [],
"tilesetUid": null
},
{
"identifier": "description",
"doc": null,
"__type": "String",
"uid": 12,
"type": "F_String",
"isArray": false,
"canBeNull": true,
"arrayMinLength": null,
"arrayMaxLength": null,
"editorDisplayMode": "Hidden",
"editorDisplayScale": 1,
"editorDisplayPos": "Above",
"editorLinkStyle": "StraightArrow",
"editorDisplayColor": null,
"editorAlwaysShow": false,
"editorShowInWorld": true,
"editorCutLongValues": true,
"editorTextSuffix": null,
"editorTextPrefix": null,
"useForSmartColor": false,
"exportToToc": false,
"searchable": false,
"min": null,
"max": null,
"regex": null,
"acceptFileTypes": null,
"defaultOverride": {
"id": "V_String",
"params": ["Collect the golden spheres by moving the blue one"]
},
"textLanguageMode": null,
"symmetricalRef": false,
"autoChainRef": true,
"allowOutOfLevelRef": true,
"allowedRefs": "OnlySame",
"allowedRefsEntityUid": null,
"allowedRefTags": [],
"tilesetUid": null
},
{
"identifier": "background",
"doc": null,
"__type": "String",
"uid": 13,
"type": "F_String",
"isArray": false,
"canBeNull": true,
"arrayMinLength": null,
"arrayMaxLength": null,
"editorDisplayMode": "Hidden",
"editorDisplayScale": 1,
"editorDisplayPos": "Above",
"editorLinkStyle": "StraightArrow",
"editorDisplayColor": null,
"editorAlwaysShow": false,
"editorShowInWorld": true,
"editorCutLongValues": true,
"editorTextSuffix": null,
"editorTextPrefix": null,
"useForSmartColor": false,
"exportToToc": false,
"searchable": false,
"min": null,
"max": null,
"regex": null,
"acceptFileTypes": null,
"defaultOverride": {
"id": "V_String",
"params": ["background-lila"]
},
"textLanguageMode": null,
"symmetricalRef": false,
"autoChainRef": true,
"allowOutOfLevelRef": true,
"allowedRefs": "OnlySame",
"allowedRefsEntityUid": null,
"allowedRefTags": [],
"tilesetUid": null
},
{
"identifier": "minmoves",
"doc": null,
"__type": "Int",
"uid": 14,
"type": "F_Int",
"isArray": false,
"canBeNull": false,
"arrayMinLength": null,
"arrayMaxLength": null,
"editorDisplayMode": "Hidden",
"editorDisplayScale": 1,
"editorDisplayPos": "Above",
"editorLinkStyle": "StraightArrow",
"editorDisplayColor": null,
"editorAlwaysShow": false,
"editorShowInWorld": true,
"editorCutLongValues": true,
"editorTextSuffix": null,
"editorTextPrefix": null,
"useForSmartColor": false,
"exportToToc": false,
"searchable": false,
"min": null,
"max": null,
"regex": null,
"acceptFileTypes": null,
"defaultOverride": { "id": "V_Int", "params": [6] },
"textLanguageMode": null,
"symmetricalRef": false,
"autoChainRef": true,
"allowOutOfLevelRef": true,
"allowedRefs": "OnlySame",
"allowedRefsEntityUid": null,
"allowedRefTags": [],
"tilesetUid": null
}
] },
"levels": [
{
"identifier": "Level_0",
"identifier": "Start",
"iid": "267fa4f0-d7b0-11ee-a97e-d90512e08363",
"uid": 0,
"worldX": -224,
@@ -355,7 +510,7 @@
"pxHei": 480,
"__bgColor": "#696A79",
"bgColor": null,
"useAutoIdentifier": true,
"useAutoIdentifier": false,
"bgRelPath": null,
"bgPos": null,
"bgPivotX": 0.5,
@@ -363,7 +518,12 @@
"__smartColor": "#ADADB5",
"__bgPos": null,
"externalRelPath": null,
"fieldInstances": [],
"fieldInstances": [
{ "__identifier": "level", "__type": "Int", "__value": 1, "__tile": null, "defUid": 11, "realEditorValues": [] },
{ "__identifier": "description", "__type": "String", "__value": "Collect the golden spheres by moving the blue one", "__tile": null, "defUid": 12, "realEditorValues": [] },
{ "__identifier": "background", "__type": "String", "__value": "background-lila", "__tile": null, "defUid": 13, "realEditorValues": [] },
{ "__identifier": "minmoves", "__type": "Int", "__value": 6, "__tile": null, "defUid": 14, "realEditorValues": [] }
],
"layerInstances": [
{
"__identifier": "Entities",
@@ -390,7 +550,7 @@
"gridTiles": [],
"entityInstances": [
{
"__identifier": "Player_Primary",
"__identifier": "PlayerPrimary",
"__grid": [7,5],
"__pivot": [0,0],
"__tags": [],
@@ -420,6 +580,38 @@
"fieldInstances": [],
"__worldX": 128,
"__worldY": 224
},
{
"__identifier": "Collectible",
"__grid": [9,5],
"__pivot": [0,0],
"__tags": [],
"__tile": { "tilesetUid": 1, "x": 32, "y": 32, "w": 32, "h": 32 },
"__smartColor": "#FEAE34",
"iid": "5dbb7c20-d7b0-11ee-84a6-d1c69ca7fab5",
"width": 32,
"height": 32,
"defUid": 4,
"px": [288,160],
"fieldInstances": [],
"__worldX": 64,
"__worldY": 160
},
{
"__identifier": "Collectible",
"__grid": [12,5],
"__pivot": [0,0],
"__tags": [],
"__tile": { "tilesetUid": 1, "x": 32, "y": 32, "w": 32, "h": 32 },
"__smartColor": "#FEAE34",
"iid": "b3028a20-d7b0-11ee-84a6-e73fb360996b",
"width": 32,
"height": 32,
"defUid": 4,
"px": [384,160],
"fieldInstances": [],
"__worldX": 160,
"__worldY": 160
}
]
},
@@ -489,7 +681,7 @@
"__neighbours": []
},
{
"identifier": "_First_Try",
"identifier": "Jump",
"iid": "024390f0-d7b0-11ee-98fb-1bc6ad7e4172",
"uid": 6,
"worldX": 480,
@@ -507,7 +699,15 @@
"__smartColor": "#ADADB5",
"__bgPos": { "topLeftPx": [0,0], "scale": [1,1], "cropRect": [0,0,640,480] },
"externalRelPath": null,
"fieldInstances": [],
"fieldInstances": [
{ "__identifier": "level", "__type": "Int", "__value": 2, "__tile": null, "defUid": 11, "realEditorValues": [{ "id": "V_Int", "params": [2] }] },
{ "__identifier": "description", "__type": "String", "__value": "you can jump", "__tile": null, "defUid": 12, "realEditorValues": [{
"id": "V_String",
"params": ["you can jump"]
}] },
{ "__identifier": "background", "__type": "String", "__value": "background-lila", "__tile": null, "defUid": 13, "realEditorValues": [] },
{ "__identifier": "minmoves", "__type": "Int", "__value": 4, "__tile": null, "defUid": 14, "realEditorValues": [{ "id": "V_Int", "params": [4] }] }
],
"layerInstances": [
{
"__identifier": "Entities",
@@ -534,7 +734,7 @@
"gridTiles": [],
"entityInstances": [
{
"__identifier": "Obstacle_West",
"__identifier": "ObstacleWest",
"__grid": [6,8],
"__pivot": [0,0],
"__tags": [],
@@ -550,7 +750,7 @@
"__worldY": 256
},
{
"__identifier": "Player_Primary",
"__identifier": "PlayerPrimary",
"__grid": [4,5],
"__pivot": [0,0],
"__tags": [],
@@ -598,7 +798,7 @@
"__worldY": 192
},
{
"__identifier": "Obstacle_South",
"__identifier": "ObstacleSouth",
"__grid": [15,6],
"__pivot": [0,0],
"__tags": [],