diff --git a/assets/levels/world.ldtk b/assets/levels/world.ldtk index 39d6274..870f763 100644 --- a/assets/levels/world.ldtk +++ b/assets/levels/world.ldtk @@ -26,7 +26,7 @@ "levelIid": "d53f9950-c640-11ed-8430-4942c04951ff", "layerIid": "d53f9951-c640-11ed-8430-3f3f71a3daf1", "entityIid": "1982b890-3740-11f0-881a-73ffe6c3eecc" - }, "worldX": 232, "worldY": -104, "widPx": 16, "heiPx": 16, "fields" : {} }] + }, "worldX": 168, "worldY": -104, "widPx": 24, "heiPx": 24, "fields" : {} }] }], "worldLayout": "GridVania", "worldGridWidth": 256, @@ -55,41 +55,6 @@ "customCommands": [], "flags": [ "ExportOldTableOfContentData", "UseMultilinesType" ], "defs": { "layers": [ - { - "__type": "Entities", - "identifier": "Entities", - "type": "Entities", - "uid": 54, - "doc": null, - "uiColor": "#0099DB", - "gridSize": 16, - "guideGridWid": 0, - "guideGridHei": 0, - "displayOpacity": 1, - "inactiveOpacity": 1, - "hideInList": false, - "hideFieldsWhenInactive": false, - "canSelectWhenInactive": true, - "renderInWorldView": true, - "pxOffsetX": 0, - "pxOffsetY": 0, - "parallaxFactorX": 0, - "parallaxFactorY": 0, - "parallaxScaling": true, - "requiredTags": [], - "excludedTags": [], - "autoTilesKilledByOtherLayerUid": null, - "uiFilterTags": [], - "useAsyncRender": false, - "intGridValues": [], - "intGridValuesGroups": [], - "autoRuleGroups": [], - "autoSourceLayerDefUid": null, - "tilesetDefUid": null, - "tilePivotX": 0, - "tilePivotY": 0, - "biomeFieldUid": null - }, { "__type": "AutoLayer", "identifier": "Wall_tops", @@ -793,6 +758,41 @@ "tilePivotY": 0, "biomeFieldUid": null }, + { + "__type": "Entities", + "identifier": "Entities", + "type": "Entities", + "uid": 54, + "doc": null, + "uiColor": "#0099DB", + "gridSize": 16, + "guideGridWid": 0, + "guideGridHei": 0, + "displayOpacity": 1, + "inactiveOpacity": 1, + "hideInList": false, + "hideFieldsWhenInactive": false, + "canSelectWhenInactive": true, + "renderInWorldView": true, + "pxOffsetX": 0, + "pxOffsetY": 0, + "parallaxFactorX": 0, + "parallaxFactorY": 0, + "parallaxScaling": true, + "requiredTags": [], + "excludedTags": [], + "autoTilesKilledByOtherLayerUid": null, + "uiFilterTags": [], + "useAsyncRender": false, + "intGridValues": [], + "intGridValuesGroups": [], + "autoRuleGroups": [], + "autoSourceLayerDefUid": null, + "tilesetDefUid": null, + "tilePivotX": 0, + "tilePivotY": 0, + "biomeFieldUid": null + }, { "__type": "Tiles", "identifier": "Custom_floor", @@ -926,8 +926,8 @@ "exportToToc": true, "allowOutOfBounds": false, "doc": null, - "width": 16, - "height": 16, + "width": 24, + "height": 24, "resizableX": false, "resizableY": false, "minWidth": null, @@ -1419,180 +1419,6 @@ "externalRelPath": null, "fieldInstances": [], "layerInstances": [ - { - "__identifier": "Entities", - "__type": "Entities", - "__cWid": 32, - "__cHei": 16, - "__gridSize": 16, - "__opacity": 1, - "__pxTotalOffsetX": 0, - "__pxTotalOffsetY": 0, - "__tilesetDefUid": null, - "__tilesetRelPath": null, - "iid": "d53f9951-c640-11ed-8430-3f3f71a3daf1", - "levelId": 109, - "layerDefUid": 54, - "pxOffsetX": 0, - "pxOffsetY": 0, - "visible": true, - "optionalRules": [], - "intGridCsv": [], - "autoLayerTiles": [], - "seed": 4328649, - "overrideTilesetUid": null, - "gridTiles": [], - "entityInstances": [ - { - "__identifier": "Door", - "__grid": [10,7], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "8ac5dda0-c640-11ed-8430-8169bab5952b", - "width": 32, - "height": 16, - "defUid": 62, - "px": [160,112], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": 160, - "__worldY": -144 - }, - { - "__identifier": "Door", - "__grid": [18,7], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "8d4360c0-c640-11ed-8430-abb21cbec6c0", - "width": 32, - "height": 16, - "defUid": 62, - "px": [288,112], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": 288, - "__worldY": -144 - }, - { - "__identifier": "Door", - "__grid": [7,9], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "a1e0c860-c640-11ed-8430-e927d6a72261", - "width": 16, - "height": 48, - "defUid": 62, - "px": [112,144], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": "KeyA", "__tile": null, "defUid": 69, "realEditorValues": [{ - "id": "V_String", - "params": ["KeyA"] - }] }], - "__worldX": 112, - "__worldY": -112 - }, - { - "__identifier": "Item", - "__grid": [18,3], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 96, "y": 160, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "c3c403c0-c640-11ed-8430-cd4fd5179384", - "width": 20, - "height": 20, - "defUid": 63, - "px": [296,56], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "KeyA", "__tile": { "tilesetUid": 172, "x": 96, "y": 160, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["KeyA"] - }] }], - "__worldX": 296, - "__worldY": -200 - }, - { - "__identifier": "Item", - "__grid": [3,4], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 0, "y": 160, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "c75e4180-c640-11ed-8430-ebd1fb662306", - "width": 20, - "height": 20, - "defUid": 63, - "px": [56,72], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Health", "__tile": { "tilesetUid": 172, "x": 0, "y": 160, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Health"] - }] }], - "__worldX": 56, - "__worldY": -184 - }, - { - "__identifier": "Button", - "__grid": [11,2], - "__pivot": [0.5,0.5], - "__tags": ["environment"], - "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, - "__smartColor": "#FF0000", - "iid": "cb7d3fa0-c640-11ed-8430-97bfc67769ff", - "width": 10, - "height": 10, - "defUid": 105, - "px": [184,40], - "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [{ - "entityIid": "8d4360c0-c640-11ed-8430-abb21cbec6c0", - "layerIid": "d53f9951-c640-11ed-8430-3f3f71a3daf1", - "levelIid": "d53f9950-c640-11ed-8430-4942c04951ff", - "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" - }], "__tile": null, "defUid": 106, "realEditorValues": [{ - "id": "V_String", - "params": ["8d4360c0-c640-11ed-8430-abb21cbec6c0"] - }] }], - "__worldX": 184, - "__worldY": -216 - }, - { - "__identifier": "Door", - "__grid": [8,4], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "c8d51610-3b70-11ee-b655-5116b3326bb0", - "width": 16, - "height": 32, - "defUid": 62, - "px": [128,64], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": 128, - "__worldY": -192 - }, - { - "__identifier": "Player", - "__grid": [14,9], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 171, "x": 195, "y": 130, "w": 64, "h": 64 }, - "__smartColor": "#03CB7C", - "iid": "1982b890-3740-11f0-881a-73ffe6c3eecc", - "width": 16, - "height": 16, - "defUid": 59, - "px": [232,152], - "fieldInstances": [ - { "__identifier": "life", "__type": "Int", "__value": 100, "__tile": null, "defUid": 61, "realEditorValues": [] }, - { "__identifier": "ammo", "__type": "Int", "__value": 10, "__tile": null, "defUid": 60, "realEditorValues": [] } - ], - "__worldX": 232, - "__worldY": -104 - } - ] - }, { "__identifier": "Wall_tops", "__type": "AutoLayer", @@ -2471,6 +2297,180 @@ "gridTiles": [], "entityInstances": [] }, + { + "__identifier": "Entities", + "__type": "Entities", + "__cWid": 32, + "__cHei": 16, + "__gridSize": 16, + "__opacity": 1, + "__pxTotalOffsetX": 0, + "__pxTotalOffsetY": 0, + "__tilesetDefUid": null, + "__tilesetRelPath": null, + "iid": "d53f9951-c640-11ed-8430-3f3f71a3daf1", + "levelId": 109, + "layerDefUid": 54, + "pxOffsetX": 0, + "pxOffsetY": 0, + "visible": true, + "optionalRules": [], + "intGridCsv": [], + "autoLayerTiles": [], + "seed": 4328649, + "overrideTilesetUid": null, + "gridTiles": [], + "entityInstances": [ + { + "__identifier": "Door", + "__grid": [10,7], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "8ac5dda0-c640-11ed-8430-8169bab5952b", + "width": 32, + "height": 16, + "defUid": 62, + "px": [160,112], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": 160, + "__worldY": -144 + }, + { + "__identifier": "Door", + "__grid": [18,7], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "8d4360c0-c640-11ed-8430-abb21cbec6c0", + "width": 32, + "height": 16, + "defUid": 62, + "px": [288,112], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": 288, + "__worldY": -144 + }, + { + "__identifier": "Door", + "__grid": [7,9], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "a1e0c860-c640-11ed-8430-e927d6a72261", + "width": 16, + "height": 48, + "defUid": 62, + "px": [112,144], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": "KeyA", "__tile": null, "defUid": 69, "realEditorValues": [{ + "id": "V_String", + "params": ["KeyA"] + }] }], + "__worldX": 112, + "__worldY": -112 + }, + { + "__identifier": "Item", + "__grid": [18,3], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 96, "y": 160, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "c3c403c0-c640-11ed-8430-cd4fd5179384", + "width": 20, + "height": 20, + "defUid": 63, + "px": [296,56], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "KeyA", "__tile": { "tilesetUid": 172, "x": 96, "y": 160, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["KeyA"] + }] }], + "__worldX": 296, + "__worldY": -200 + }, + { + "__identifier": "Item", + "__grid": [3,4], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 0, "y": 160, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "c75e4180-c640-11ed-8430-ebd1fb662306", + "width": 20, + "height": 20, + "defUid": 63, + "px": [56,72], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Health", "__tile": { "tilesetUid": 172, "x": 0, "y": 160, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Health"] + }] }], + "__worldX": 56, + "__worldY": -184 + }, + { + "__identifier": "Button", + "__grid": [11,2], + "__pivot": [0.5,0.5], + "__tags": ["environment"], + "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, + "__smartColor": "#FF0000", + "iid": "cb7d3fa0-c640-11ed-8430-97bfc67769ff", + "width": 10, + "height": 10, + "defUid": 105, + "px": [184,40], + "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [{ + "entityIid": "8d4360c0-c640-11ed-8430-abb21cbec6c0", + "layerIid": "d53f9951-c640-11ed-8430-3f3f71a3daf1", + "levelIid": "d53f9950-c640-11ed-8430-4942c04951ff", + "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" + }], "__tile": null, "defUid": 106, "realEditorValues": [{ + "id": "V_String", + "params": ["8d4360c0-c640-11ed-8430-abb21cbec6c0"] + }] }], + "__worldX": 184, + "__worldY": -216 + }, + { + "__identifier": "Door", + "__grid": [8,4], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "c8d51610-3b70-11ee-b655-5116b3326bb0", + "width": 16, + "height": 32, + "defUid": 62, + "px": [128,64], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": 128, + "__worldY": -192 + }, + { + "__identifier": "Player", + "__grid": [10,9], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 171, "x": 195, "y": 130, "w": 64, "h": 64 }, + "__smartColor": "#03CB7C", + "iid": "1982b890-3740-11f0-881a-73ffe6c3eecc", + "width": 24, + "height": 24, + "defUid": 59, + "px": [168,152], + "fieldInstances": [ + { "__identifier": "life", "__type": "Int", "__value": 100, "__tile": null, "defUid": 61, "realEditorValues": [] }, + { "__identifier": "ammo", "__type": "Int", "__value": 10, "__tile": null, "defUid": 60, "realEditorValues": [] } + ], + "__worldX": 168, + "__worldY": -104 + } + ] + }, { "__identifier": "Custom_floor", "__type": "Tiles", @@ -2990,183 +2990,6 @@ "externalRelPath": null, "fieldInstances": [], "layerInstances": [ - { - "__identifier": "Entities", - "__type": "Entities", - "__cWid": 16, - "__cHei": 16, - "__gridSize": 16, - "__opacity": 1, - "__pxTotalOffsetX": 0, - "__pxTotalOffsetY": 0, - "__tilesetDefUid": null, - "__tilesetRelPath": null, - "iid": "5b1771e1-c640-11ed-8430-c567ed490639", - "levelId": 145, - "layerDefUid": 54, - "pxOffsetX": 0, - "pxOffsetY": 0, - "visible": true, - "optionalRules": [], - "intGridCsv": [], - "autoLayerTiles": [], - "seed": 7331311, - "overrideTilesetUid": null, - "gridTiles": [], - "entityInstances": [ - { - "__identifier": "Door", - "__grid": [10,6], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "9b204460-c640-11ed-8430-dbaaf87f9ec4", - "width": 16, - "height": 16, - "defUid": 62, - "px": [160,96], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": -96, - "__worldY": -160 - }, - { - "__identifier": "Item", - "__grid": [5,5], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "d60070f0-c640-11ed-8430-1fbe3e7e0e50", - "width": 20, - "height": 20, - "defUid": 63, - "px": [88,88], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Wood"] - }] }], - "__worldX": -168, - "__worldY": -168 - }, - { - "__identifier": "Item", - "__grid": [8,6], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "d83181c0-c640-11ed-8430-8ff8bb36b114", - "width": 20, - "height": 20, - "defUid": 63, - "px": [136,104], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Wood"] - }] }], - "__worldX": -120, - "__worldY": -152 - }, - { - "__identifier": "Item", - "__grid": [4,8], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "da07c860-c640-11ed-8430-4d5c0daa8a2b", - "width": 20, - "height": 20, - "defUid": 63, - "px": [72,136], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Wood"] - }] }], - "__worldX": -184, - "__worldY": -120 - }, - { - "__identifier": "Item", - "__grid": [12,12], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 128, "y": 96, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "5cbf6010-c640-11ed-8430-bdf779e74a2c", - "width": 20, - "height": 20, - "defUid": 63, - "px": [200,200], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Gold", "__tile": { "tilesetUid": 172, "x": 128, "y": 96, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Gold"] - }] }], - "__worldX": -56, - "__worldY": -56 - }, - { - "__identifier": "SecretWall", - "__grid": [8,12], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 104, "x": 320, "y": 256, "w": 16, "h": 16 }, - "__smartColor": "#B55088", - "iid": "778bba10-c640-11ed-8430-45e05816c898", - "width": 16, - "height": 16, - "defUid": 148, - "px": [128,192], - "fieldInstances": [], - "__worldX": -128, - "__worldY": -64 - }, - { - "__identifier": "Button", - "__grid": [5,10], - "__pivot": [0.5,0.5], - "__tags": ["environment"], - "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, - "__smartColor": "#FF0000", - "iid": "8da3dad0-c640-11ed-8430-b5ffeb3fb035", - "width": 10, - "height": 10, - "defUid": 105, - "px": [88,168], - "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [{ - "entityIid": "778bba10-c640-11ed-8430-45e05816c898", - "layerIid": "5b1771e1-c640-11ed-8430-c567ed490639", - "levelIid": "5b1771e0-c640-11ed-8430-9b64f8cc95ad", - "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" - }], "__tile": null, "defUid": 106, "realEditorValues": [{ - "id": "V_String", - "params": ["778bba10-c640-11ed-8430-45e05816c898"] - }] }], - "__worldX": -168, - "__worldY": -88 - }, - { - "__identifier": "Item", - "__grid": [6,2], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 416, "y": 2880, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "32ec4110-c640-11ed-8430-09dce52db41d", - "width": 20, - "height": 20, - "defUid": 63, - "px": [104,40], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "KeyB", "__tile": { "tilesetUid": 172, "x": 416, "y": 2880, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["KeyB"] - }] }], - "__worldX": -152, - "__worldY": -216 - } - ] - }, { "__identifier": "Wall_tops", "__type": "AutoLayer", @@ -3742,6 +3565,183 @@ "gridTiles": [], "entityInstances": [] }, + { + "__identifier": "Entities", + "__type": "Entities", + "__cWid": 16, + "__cHei": 16, + "__gridSize": 16, + "__opacity": 1, + "__pxTotalOffsetX": 0, + "__pxTotalOffsetY": 0, + "__tilesetDefUid": null, + "__tilesetRelPath": null, + "iid": "5b1771e1-c640-11ed-8430-c567ed490639", + "levelId": 145, + "layerDefUid": 54, + "pxOffsetX": 0, + "pxOffsetY": 0, + "visible": true, + "optionalRules": [], + "intGridCsv": [], + "autoLayerTiles": [], + "seed": 7331311, + "overrideTilesetUid": null, + "gridTiles": [], + "entityInstances": [ + { + "__identifier": "Door", + "__grid": [10,6], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "9b204460-c640-11ed-8430-dbaaf87f9ec4", + "width": 16, + "height": 16, + "defUid": 62, + "px": [160,96], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": -96, + "__worldY": -160 + }, + { + "__identifier": "Item", + "__grid": [5,5], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "d60070f0-c640-11ed-8430-1fbe3e7e0e50", + "width": 20, + "height": 20, + "defUid": 63, + "px": [88,88], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Wood"] + }] }], + "__worldX": -168, + "__worldY": -168 + }, + { + "__identifier": "Item", + "__grid": [8,6], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "d83181c0-c640-11ed-8430-8ff8bb36b114", + "width": 20, + "height": 20, + "defUid": 63, + "px": [136,104], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Wood"] + }] }], + "__worldX": -120, + "__worldY": -152 + }, + { + "__identifier": "Item", + "__grid": [4,8], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "da07c860-c640-11ed-8430-4d5c0daa8a2b", + "width": 20, + "height": 20, + "defUid": 63, + "px": [72,136], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Wood", "__tile": { "tilesetUid": 172, "x": 320, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Wood"] + }] }], + "__worldX": -184, + "__worldY": -120 + }, + { + "__identifier": "Item", + "__grid": [12,12], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 128, "y": 96, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "5cbf6010-c640-11ed-8430-bdf779e74a2c", + "width": 20, + "height": 20, + "defUid": 63, + "px": [200,200], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Gold", "__tile": { "tilesetUid": 172, "x": 128, "y": 96, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Gold"] + }] }], + "__worldX": -56, + "__worldY": -56 + }, + { + "__identifier": "SecretWall", + "__grid": [8,12], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 104, "x": 320, "y": 256, "w": 16, "h": 16 }, + "__smartColor": "#B55088", + "iid": "778bba10-c640-11ed-8430-45e05816c898", + "width": 16, + "height": 16, + "defUid": 148, + "px": [128,192], + "fieldInstances": [], + "__worldX": -128, + "__worldY": -64 + }, + { + "__identifier": "Button", + "__grid": [5,10], + "__pivot": [0.5,0.5], + "__tags": ["environment"], + "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, + "__smartColor": "#FF0000", + "iid": "8da3dad0-c640-11ed-8430-b5ffeb3fb035", + "width": 10, + "height": 10, + "defUid": 105, + "px": [88,168], + "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [{ + "entityIid": "778bba10-c640-11ed-8430-45e05816c898", + "layerIid": "5b1771e1-c640-11ed-8430-c567ed490639", + "levelIid": "5b1771e0-c640-11ed-8430-9b64f8cc95ad", + "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" + }], "__tile": null, "defUid": 106, "realEditorValues": [{ + "id": "V_String", + "params": ["778bba10-c640-11ed-8430-45e05816c898"] + }] }], + "__worldX": -168, + "__worldY": -88 + }, + { + "__identifier": "Item", + "__grid": [6,2], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 416, "y": 2880, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "32ec4110-c640-11ed-8430-09dce52db41d", + "width": 20, + "height": 20, + "defUid": 63, + "px": [104,40], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "KeyB", "__tile": { "tilesetUid": 172, "x": 416, "y": 2880, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["KeyB"] + }] }], + "__worldX": -152, + "__worldY": -216 + } + ] + }, { "__identifier": "Custom_floor", "__type": "Tiles", @@ -4076,134 +4076,6 @@ "externalRelPath": null, "fieldInstances": [], "layerInstances": [ - { - "__identifier": "Entities", - "__type": "Entities", - "__cWid": 16, - "__cHei": 16, - "__gridSize": 16, - "__opacity": 1, - "__pxTotalOffsetX": 0, - "__pxTotalOffsetY": 0, - "__tilesetDefUid": null, - "__tilesetRelPath": null, - "iid": "e06b8661-c640-11ed-8430-e761d4f8aba6", - "levelId": 147, - "layerDefUid": 54, - "pxOffsetX": 0, - "pxOffsetY": 0, - "visible": true, - "optionalRules": [], - "intGridCsv": [], - "autoLayerTiles": [], - "seed": 1849743, - "overrideTilesetUid": null, - "gridTiles": [], - "entityInstances": [ - { - "__identifier": "Door", - "__grid": [3,8], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "f7ff4aa0-c640-11ed-8430-2d514444555c", - "width": 16, - "height": 32, - "defUid": 62, - "px": [48,128], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": "KeyB", "__tile": null, "defUid": 69, "realEditorValues": [{ - "id": "V_String", - "params": ["KeyB"] - }] }], - "__worldX": 560, - "__worldY": -128 - }, - { - "__identifier": "Item", - "__grid": [9,5], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 224, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "13e79bf0-c640-11ed-8430-d534eb2f2a32", - "width": 20, - "height": 20, - "defUid": 63, - "px": [152,88], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Rifle", "__tile": { "tilesetUid": 172, "x": 224, "y": 448, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Rifle"] - }] }], - "__worldX": 664, - "__worldY": -168 - }, - { - "__identifier": "Door", - "__grid": [7,5], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "74febbb0-c640-11ed-8430-99228a1aeb52", - "width": 16, - "height": 32, - "defUid": 62, - "px": [112,80], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": 624, - "__worldY": -176 - }, - { - "__identifier": "Door", - "__grid": [9,8], - "__pivot": [0,0], - "__tags": ["environment"], - "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, - "__smartColor": "#B86F50", - "iid": "75bbf130-c640-11ed-8430-4908ff1e52c1", - "width": 32, - "height": 16, - "defUid": 62, - "px": [144,128], - "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], - "__worldX": 656, - "__worldY": -128 - }, - { - "__identifier": "Button", - "__grid": [7,9], - "__pivot": [0.5,0.5], - "__tags": ["environment"], - "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, - "__smartColor": "#FF0000", - "iid": "782a5920-c640-11ed-8430-4b5f95407d8a", - "width": 10, - "height": 10, - "defUid": 105, - "px": [120,152], - "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [ { - "entityIid": "74febbb0-c640-11ed-8430-99228a1aeb52", - "layerIid": "e06b8661-c640-11ed-8430-e761d4f8aba6", - "levelIid": "e06b8660-c640-11ed-8430-7b6fcb3e9e6b", - "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" - }, { - "entityIid": "75bbf130-c640-11ed-8430-4908ff1e52c1", - "layerIid": "e06b8661-c640-11ed-8430-e761d4f8aba6", - "levelIid": "e06b8660-c640-11ed-8430-7b6fcb3e9e6b", - "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" - } ], "__tile": null, "defUid": 106, "realEditorValues": [ { - "id": "V_String", - "params": ["74febbb0-c640-11ed-8430-99228a1aeb52"] - }, { - "id": "V_String", - "params": ["75bbf130-c640-11ed-8430-4908ff1e52c1"] - } ] }], - "__worldX": 632, - "__worldY": -104 - } - ] - }, { "__identifier": "Wall_tops", "__type": "AutoLayer", @@ -4646,6 +4518,134 @@ "gridTiles": [], "entityInstances": [] }, + { + "__identifier": "Entities", + "__type": "Entities", + "__cWid": 16, + "__cHei": 16, + "__gridSize": 16, + "__opacity": 1, + "__pxTotalOffsetX": 0, + "__pxTotalOffsetY": 0, + "__tilesetDefUid": null, + "__tilesetRelPath": null, + "iid": "e06b8661-c640-11ed-8430-e761d4f8aba6", + "levelId": 147, + "layerDefUid": 54, + "pxOffsetX": 0, + "pxOffsetY": 0, + "visible": true, + "optionalRules": [], + "intGridCsv": [], + "autoLayerTiles": [], + "seed": 1849743, + "overrideTilesetUid": null, + "gridTiles": [], + "entityInstances": [ + { + "__identifier": "Door", + "__grid": [3,8], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "f7ff4aa0-c640-11ed-8430-2d514444555c", + "width": 16, + "height": 32, + "defUid": 62, + "px": [48,128], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": "KeyB", "__tile": null, "defUid": 69, "realEditorValues": [{ + "id": "V_String", + "params": ["KeyB"] + }] }], + "__worldX": 560, + "__worldY": -128 + }, + { + "__identifier": "Item", + "__grid": [9,5], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 224, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "13e79bf0-c640-11ed-8430-d534eb2f2a32", + "width": 20, + "height": 20, + "defUid": 63, + "px": [152,88], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Rifle", "__tile": { "tilesetUid": 172, "x": 224, "y": 448, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Rifle"] + }] }], + "__worldX": 664, + "__worldY": -168 + }, + { + "__identifier": "Door", + "__grid": [7,5], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "74febbb0-c640-11ed-8430-99228a1aeb52", + "width": 16, + "height": 32, + "defUid": 62, + "px": [112,80], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": 624, + "__worldY": -176 + }, + { + "__identifier": "Door", + "__grid": [9,8], + "__pivot": [0,0], + "__tags": ["environment"], + "__tile": { "tilesetUid": 172, "x": 288, "y": 448, "w": 32, "h": 32 }, + "__smartColor": "#B86F50", + "iid": "75bbf130-c640-11ed-8430-4908ff1e52c1", + "width": 32, + "height": 16, + "defUid": 62, + "px": [144,128], + "fieldInstances": [{ "__identifier": "lockedWith", "__type": "LocalEnum.Item", "__value": null, "__tile": null, "defUid": 69, "realEditorValues": [] }], + "__worldX": 656, + "__worldY": -128 + }, + { + "__identifier": "Button", + "__grid": [7,9], + "__pivot": [0.5,0.5], + "__tags": ["environment"], + "__tile": { "tilesetUid": 104, "x": 272, "y": 32, "w": 16, "h": 16 }, + "__smartColor": "#FF0000", + "iid": "782a5920-c640-11ed-8430-4b5f95407d8a", + "width": 10, + "height": 10, + "defUid": 105, + "px": [120,152], + "fieldInstances": [{ "__identifier": "targets", "__type": "Array", "__value": [ { + "entityIid": "74febbb0-c640-11ed-8430-99228a1aeb52", + "layerIid": "e06b8661-c640-11ed-8430-e761d4f8aba6", + "levelIid": "e06b8660-c640-11ed-8430-7b6fcb3e9e6b", + "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" + }, { + "entityIid": "75bbf130-c640-11ed-8430-4908ff1e52c1", + "layerIid": "e06b8661-c640-11ed-8430-e761d4f8aba6", + "levelIid": "e06b8660-c640-11ed-8430-7b6fcb3e9e6b", + "worldIid": "c9ef2d10-c640-11ed-ad34-f553e1d803f9" + } ], "__tile": null, "defUid": 106, "realEditorValues": [ { + "id": "V_String", + "params": ["74febbb0-c640-11ed-8430-99228a1aeb52"] + }, { + "id": "V_String", + "params": ["75bbf130-c640-11ed-8430-4908ff1e52c1"] + } ] }], + "__worldX": 632, + "__worldY": -104 + } + ] + }, { "__identifier": "Custom_floor", "__type": "Tiles", @@ -4999,51 +4999,6 @@ "externalRelPath": null, "fieldInstances": [], "layerInstances": [ - { - "__identifier": "Entities", - "__type": "Entities", - "__cWid": 16, - "__cHei": 16, - "__gridSize": 16, - "__opacity": 1, - "__pxTotalOffsetX": 0, - "__pxTotalOffsetY": 0, - "__tilesetDefUid": null, - "__tilesetRelPath": null, - "iid": "d89f58c0-5e50-11f0-8497-a77eea7ca1c9", - "levelId": 173, - "layerDefUid": 54, - "pxOffsetX": 0, - "pxOffsetY": 0, - "visible": true, - "optionalRules": [], - "intGridCsv": [], - "autoLayerTiles": [], - "seed": 1849743, - "overrideTilesetUid": null, - "gridTiles": [], - "entityInstances": [ - { - "__identifier": "Item", - "__grid": [11,4], - "__pivot": [0.5,0.5], - "__tags": ["actor"], - "__tile": { "tilesetUid": 172, "x": 256, "y": 256, "w": 32, "h": 32 }, - "__smartColor": "#FF0044", - "iid": "d89f7fd0-5e50-11f0-8497-69ac302ce66d", - "width": 20, - "height": 20, - "defUid": 63, - "px": [184,72], - "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Food", "__tile": { "tilesetUid": 172, "x": 256, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ - "id": "V_String", - "params": ["Food"] - }] }], - "__worldX": 696, - "__worldY": -440 - } - ] - }, { "__identifier": "Wall_tops", "__type": "AutoLayer", @@ -5498,6 +5453,51 @@ "gridTiles": [], "entityInstances": [] }, + { + "__identifier": "Entities", + "__type": "Entities", + "__cWid": 16, + "__cHei": 16, + "__gridSize": 16, + "__opacity": 1, + "__pxTotalOffsetX": 0, + "__pxTotalOffsetY": 0, + "__tilesetDefUid": null, + "__tilesetRelPath": null, + "iid": "d89f58c0-5e50-11f0-8497-a77eea7ca1c9", + "levelId": 173, + "layerDefUid": 54, + "pxOffsetX": 0, + "pxOffsetY": 0, + "visible": true, + "optionalRules": [], + "intGridCsv": [], + "autoLayerTiles": [], + "seed": 1849743, + "overrideTilesetUid": null, + "gridTiles": [], + "entityInstances": [ + { + "__identifier": "Item", + "__grid": [11,4], + "__pivot": [0.5,0.5], + "__tags": ["actor"], + "__tile": { "tilesetUid": 172, "x": 256, "y": 256, "w": 32, "h": 32 }, + "__smartColor": "#FF0044", + "iid": "d89f7fd0-5e50-11f0-8497-69ac302ce66d", + "width": 20, + "height": 20, + "defUid": 63, + "px": [184,72], + "fieldInstances": [{ "__identifier": "type", "__type": "LocalEnum.Item", "__value": "Food", "__tile": { "tilesetUid": 172, "x": 256, "y": 256, "w": 32, "h": 32 }, "defUid": 146, "realEditorValues": [{ + "id": "V_String", + "params": ["Food"] + }] }], + "__worldX": 696, + "__worldY": -440 + } + ] + }, { "__identifier": "Custom_floor", "__type": "Tiles", @@ -5898,31 +5898,6 @@ "externalRelPath": null, "fieldInstances": [], "layerInstances": [ - { - "__identifier": "Entities", - "__type": "Entities", - "__cWid": 16, - "__cHei": 16, - "__gridSize": 16, - "__opacity": 1, - "__pxTotalOffsetX": 0, - "__pxTotalOffsetY": 0, - "__tilesetDefUid": null, - "__tilesetRelPath": null, - "iid": "6819b331-3740-11f0-8612-3955a78aadba", - "levelId": 170, - "layerDefUid": 54, - "pxOffsetX": 0, - "pxOffsetY": 0, - "visible": true, - "optionalRules": [], - "intGridCsv": [], - "autoLayerTiles": [], - "seed": 1358177, - "overrideTilesetUid": null, - "gridTiles": [], - "entityInstances": [] - }, { "__identifier": "Wall_tops", "__type": "AutoLayer", @@ -6265,6 +6240,31 @@ "gridTiles": [], "entityInstances": [] }, + { + "__identifier": "Entities", + "__type": "Entities", + "__cWid": 16, + "__cHei": 16, + "__gridSize": 16, + "__opacity": 1, + "__pxTotalOffsetX": 0, + "__pxTotalOffsetY": 0, + "__tilesetDefUid": null, + "__tilesetRelPath": null, + "iid": "6819b331-3740-11f0-8612-3955a78aadba", + "levelId": 170, + "layerDefUid": 54, + "pxOffsetX": 0, + "pxOffsetY": 0, + "visible": true, + "optionalRules": [], + "intGridCsv": [], + "autoLayerTiles": [], + "seed": 1358177, + "overrideTilesetUid": null, + "gridTiles": [], + "entityInstances": [] + }, { "__identifier": "Custom_floor", "__type": "Tiles", diff --git a/src/demo/level.rs b/src/demo/level.rs index 7a54941..ee140c0 100644 --- a/src/demo/level.rs +++ b/src/demo/level.rs @@ -104,13 +104,13 @@ fn translate_grid_coords_entities( // TODO: what is this used for? Why it doesn't work for a moving Player? for (mut transform, grid_coords) in grid_coords_entities.iter_mut() { info!("Changed GridCoords: {grid_coords:?}"); - info!("Previous traslation: {:?}", transform.translation); + debug!("Previous traslation: {:?}", transform.translation); transform.translation = (bevy_ecs_ldtk::utils::grid_coords_to_translation( *grid_coords, IVec2::splat(GRID_SIZE), )) .extend(transform.translation.z); - info!("Updated traslation: {:?}", transform.translation); + debug!("Updated traslation: {:?}", transform.translation); } }