Fixed frontend tmx parsing for ortho map.

This commit is contained in:
genxium
2022-11-16 22:11:56 +08:00
parent 7b9172c27b
commit 22fb72afbc
113 changed files with 2880 additions and 912 deletions

View File

@@ -1,7 +0,0 @@
{
"ver": "1.0.1",
"uuid": "51c54820-d753-4be8-a855-5760eed8f7ef",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

View File

@@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "136d09e9-c33c-45dc-abb7-e367d730c814",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"Tile_W256_H128_S01": {
"ver": "1.0.4",
"uuid": "7acc48f5-d9c9-4438-8794-57a85590bd97",
"rawTextureUuid": "136d09e9-c33c-45dc-abb7-e367d730c814",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 831,
"trimX": 0,
"trimY": 0,
"width": 2048,
"height": 386,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.2" name="Tile_W256_H128_S01" tilewidth="256" tileheight="128" tilecount="128" columns="8">
<image source="Tile_W256_H128_S01.png" width="2048" height="2048"/>
</tileset>

View File

@@ -1,5 +0,0 @@
{
"ver": "2.0.0",
"uuid": "df775ad6-885e-411b-8b2a-f4bcf70b4fbf",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

View File

@@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "d8e6c175-1f17-48df-a0aa-cdd9785f4d3a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"Tile_W256_H256_S01": {
"ver": "1.0.4",
"uuid": "4a23290b-bf5a-4849-ac19-6ebd4b7daa59",
"rawTextureUuid": "d8e6c175-1f17-48df-a0aa-cdd9785f4d3a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 64,
"width": 1280,
"height": 896,
"rawWidth": 1280,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.2" name="Tile_W256_H256_S01" tilewidth="256" tileheight="256" tilecount="20" columns="5">
<grid orientation="isometric" width="256" height="128"/>
<image source="Tile_W256_H256_S01.png" width="1280" height="1024"/>
<terraintypes>
<terrain name="grass" tile="1"/>
<terrain name="dirt" tile="2"/>
</terraintypes>
<tile id="1" terrain="0,0,0,0"/>
<tile id="2" terrain="1,1,1,1"/>
<tile id="3" terrain="0,1,1,1"/>
<tile id="4" terrain="1,1,0,1"/>
<tile id="5" terrain="1,1,1,0"/>
<tile id="6" terrain="1,0,1,1"/>
<tile id="7" terrain="1,0,1,0"/>
<tile id="8" terrain="0,0,1,1"/>
<tile id="9" terrain="0,1,0,1"/>
<tile id="11" terrain="1,1,0,0"/>
<tile id="12" terrain="1,0,0,0"/>
<tile id="13" terrain="0,0,1,0"/>
<tile id="14" terrain="0,0,0,1"/>
<tile id="15" terrain="0,1,0,0"/>
</tileset>

View File

@@ -1,5 +0,0 @@
{
"ver": "2.0.0",
"uuid": "81508f64-031d-4d00-9aa0-8e9841907d0a",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "74245e28-6cec-4960-ac41-5b482ad8fd13",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"Tile_W256_H256_S02": {
"ver": "1.0.4",
"uuid": "8fc46c1f-6fb4-4290-99f3-b773b92312b7",
"rawTextureUuid": "74245e28-6cec-4960-ac41-5b482ad8fd13",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 19.5,
"offsetY": 3.5,
"trimX": 89,
"trimY": 0,
"width": 1409,
"height": 251,
"rawWidth": 1548,
"rawHeight": 258,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.3" name="Tile_W256_H256_S02" tilewidth="256" tileheight="256" tilecount="6" columns="6">
<image source="Tile_W256_H256_S02.png" width="1548" height="258"/>
<tile id="0">
<objectgroup draworder="index">
<object id="1" x="120" y="-59">
<properties>
<property name="boundary_type" value="LowScoreTreasure"/>
</properties>
<polyline points="-1,73 -104,182 -42,283 74,287 125,147"/>
</object>
</objectgroup>
</tile>
<tile id="1">
<objectgroup draworder="index">
<object id="1" x="117" y="-36">
<properties>
<property name="boundary_type" value="HighScoreTreasure"/>
</properties>
<polyline points="13,41 -100,107 -101,236 19,265 119,248 123,105"/>
</object>
</objectgroup>
</tile>
<tile id="4">
<objectgroup draworder="index">
<object id="2" x="135" y="-96">
<properties>
<property name="boundary_type" value="GuardTower"/>
</properties>
<polyline points="0,0 -202,72 -240,408 295,406 189,51"/>
</object>
</objectgroup>
</tile>
</tileset>

View File

@@ -1,5 +0,0 @@
{
"ver": "2.0.0",
"uuid": "4e822a8b-f3be-4b83-b61d-9e04c56c5eba",
"subMetas": {}
}

View File

@@ -1,129 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.2" tiledversion="1.2.3" orientation="isometric" renderorder="right-down" width="46" height="46" tilewidth="256" tileheight="128" infinite="0" nextlayerid="19" nextobjectid="167">
<tileset firstgid="1" source="Tile_W256_H256_S01.tsx"/>
<tileset firstgid="21" source="Tile_W256_H256_S02.tsx"/>
<layer id="11" name="GroundFloor" width="46" height="46">
<data encoding="base64" compression="zlib">
eJztmNsOAyEIRNXem97+/2urSU0MEbs2A9XIwzwtuocJLrjBORdMJpPJtIyeUZeKHhtiaJwWW9I+alfRuVh/ZWJoHJqZY2tpK/dJyPfWOxHcUvxa3Oi6eUUdmHd4sLLv0p570P6h4NbwfHRuzvMZuGuez8Bd83wWbur5LNyZ/fbRyNypz3PfUzR39uPesYZ7lmo692AqNDdyTatHo7mR88m3Po/ktj4/L3fr3jAyt+a5NG7974nN33y9SNzTJObvPD9wdYOS1D+VMgcujyOJaYmuR/bMWj1yefTMdNz5kfIceSZruffk/U9uLRn3etzoO5JxG/cq3P7H/bfu/QamEBWW
</data>
</layer>
<layer id="13" name="FirstFloor" width="46" height="46">
<data encoding="base64" compression="zlib">
eJztmdEKwyAMRfsXjv7/h449CEWSNNFrvMoOlIHdktMsWtddl8xtHNb7NKx4nhhW7DaHRAk6eK9Lyh/5bCR+SxHyIvB6M+LpQUbevFmR1oP6ankX41wP0XjWOsaM5o3kA473Q+uTmTkRvHkzot2nmdH6mGlOSmtMpjdyjuxQb4mIN9OaYnkzs5t3uyduiXij9ygedqv3k6g3y/xE1zvruk7rEzZ36Xvs3X+vWEueZPxumMHfO5dTvOsYm7tnTaljbO4t1rNaZvcTnxHW82zuXic294gLwh21P4i6MNU96oF0H9mz9zr0+ve6tj02UruVfTOad5U7Iifi/0JtTOsrVL2y647MleU+I8+ddMwge55+AUD0Fwk=
</data>
</layer>
<objectgroup id="14" name="PlayerStartingPos">
<object id="104" x="1310" y="4034">
<point/>
</object>
<object id="105" x="3752" y="1312">
<point/>
</object>
</objectgroup>
<objectgroup id="15" name="Barrier">
<properties>
<property name="type" value="barrier_and_shelter"/>
</properties>
<object id="103" x="-216" y="3488">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="106" x="-168" y="3560">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="107" x="-230" y="3518">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 2552,2504 3028,2476 150,-326"/>
</object>
<object id="108" x="-340" y="3508">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 630,610 616,624 1194,-3762 -56,-3784"/>
</object>
<object id="109" x="-184" y="-136">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 4,452 6116,524 6088,-72"/>
</object>
<object id="110" x="1586" y="5406">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 402,582 4556,708 4516,-36 250,-106"/>
</object>
<object id="111" x="4958" y="-342">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 294,6626 1488,6640 1138,70"/>
</object>
</objectgroup>
<objectgroup id="16" name="LowScoreTreasure">
<object id="144" gid="21" x="1342" y="1786" width="256" height="256"/>
<object id="145" gid="21" x="1186" y="2158" width="256" height="256"/>
<object id="146" gid="21" x="2714" y="3198" width="256" height="256"/>
<object id="147" gid="21" x="2616" y="3680" width="256" height="256"/>
<object id="148" gid="21" x="3172" y="3676" width="256" height="256"/>
<object id="149" gid="21" x="3526" y="3498" width="256" height="256"/>
<object id="150" gid="21" x="3834" y="3150" width="256" height="256"/>
<object id="151" gid="21" x="2826" y="2318" width="256" height="256"/>
<object id="152" gid="21" x="2960" y="3056" width="256" height="256"/>
<object id="153" gid="21" x="3336" y="2752" width="256" height="256"/>
<object id="154" gid="21" x="1730" y="2294" width="256" height="256"/>
<object id="155" gid="21" x="1480" y="632" width="256" height="256"/>
<object id="156" gid="21" x="1116" y="1100" width="256" height="256"/>
<object id="157" gid="21" x="3952" y="2528" width="256" height="256"/>
<object id="158" gid="21" x="4942" y="3562" width="256" height="256"/>
<object id="159" gid="21" x="5032" y="2896" width="256" height="256"/>
<object id="160" gid="21" x="2606" y="722" width="256" height="256"/>
<object id="161" gid="21" x="3026" y="710" width="256" height="256"/>
<object id="162" gid="21" x="1828" y="740" width="256" height="256"/>
<object id="163" gid="21" x="1678" y="890" width="256" height="256"/>
<object id="164" gid="21" x="1060" y="1324" width="256" height="256"/>
<object id="165" gid="21" x="4606" y="2242" width="256" height="256"/>
<object id="166" gid="21" x="3848" y="1936" width="256" height="256"/>
</objectgroup>
<objectgroup id="17" name="HighScoreTreasure">
<object id="125" gid="22" x="1926" y="4586" width="256" height="256"/>
<object id="126" gid="22" x="2274" y="4990" width="256" height="256"/>
<object id="127" gid="22" x="1326" y="3410" width="256" height="256"/>
<object id="128" gid="22" x="704" y="3696" width="256" height="256"/>
<object id="129" gid="22" x="1520" y="2944" width="256" height="256"/>
<object id="130" gid="22" x="886" y="3058" width="256" height="256"/>
<object id="131" gid="22" x="3120" y="4968" width="256" height="256"/>
<object id="132" gid="22" x="2584" y="4504" width="256" height="256"/>
<object id="133" gid="22" x="4344" y="4472" width="256" height="256"/>
<object id="134" gid="22" x="4504" y="4208" width="256" height="256"/>
<object id="135" gid="22" x="3490" y="1982" width="256" height="256"/>
<object id="136" gid="22" x="4068" y="2916" width="256" height="256"/>
<object id="137" gid="22" x="4578" y="3150" width="256" height="256"/>
<object id="138" gid="22" x="2326" y="762" width="256" height="256"/>
<object id="139" gid="22" x="2276" y="1348" width="256" height="256"/>
<object id="140" gid="22" x="3366" y="2418" width="256" height="256"/>
<object id="141" gid="22" x="4526" y="2586" width="256" height="256"/>
<object id="142" gid="22" x="4586" y="1174" width="256" height="256"/>
<object id="143" gid="22" x="4126" y="666" width="256" height="256"/>
</objectgroup>
<objectgroup id="18" name="GuardTower">
<object id="112" gid="25" x="904" y="3384" width="256" height="256"/>
<object id="113" gid="25" x="1714" y="4158" width="256" height="256"/>
<object id="114" gid="25" x="2734" y="5074" width="256" height="256"/>
<object id="115" gid="25" x="2180" y="3324" width="256" height="256"/>
<object id="116" gid="25" x="3108" y="4076" width="256" height="256"/>
<object id="117" gid="25" x="4634" y="4934" width="256" height="256"/>
<object id="118" gid="25" x="1094" y="1690" width="256" height="256"/>
<object id="119" gid="25" x="2004" y="884" width="256" height="256"/>
<object id="120" gid="25" x="2956" y="892" width="256" height="256"/>
<object id="121" gid="25" x="3488" y="624" width="256" height="256"/>
<object id="122" gid="25" x="4798" y="2626" width="256" height="256"/>
<object id="123" gid="25" x="4842" y="4494" width="256" height="256"/>
<object id="124" gid="25" x="4632" y="3624" width="256" height="256"/>
</objectgroup>
</map>

View File

@@ -1,5 +0,0 @@
{
"ver": "2.0.2",
"uuid": "a9a02975-8df5-42a1-bc25-b0ff7c1c03ba",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "c30bd4d7-efdc-410c-8bdf-4a3dfc77bebd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"Tile_W300_H300_S01": {
"ver": "1.0.4",
"uuid": "66b49304-7b5b-442c-92a5-d2b368abf659",
"rawTextureUuid": "c30bd4d7-efdc-410c-8bdf-4a3dfc77bebd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 4,
"offsetY": -24.5,
"trimX": 97,
"trimY": 85,
"width": 114,
"height": 179,
"rawWidth": 300,
"rawHeight": 300,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.3" name="Tile_W300_H300_S01" tilewidth="300" tileheight="300" tilecount="1" columns="1">
<image source="Tile_W300_H300_S01.png" width="300" height="300"/>
<tile id="0">
<objectgroup draworder="index">
<object id="1" x="-27" y="-64">
<properties>
<property name="boundary_type" value="GuardTower"/>
</properties>
<polyline points="0,0 -95,179 18,407 361,434 458,168 333,-7"/>
</object>
</objectgroup>
</tile>
</tileset>

View File

@@ -1,5 +0,0 @@
{
"ver": "2.0.0",
"uuid": "8c8beea4-faa3-4270-aa27-dc5f2b7766c2",
"subMetas": {}
}

View File

@@ -1,46 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.2" tiledversion="1.2.3" orientation="isometric" renderorder="right-down" width="50" height="50" tilewidth="64" tileheight="64" infinite="0" nextlayerid="11" nextobjectid="215">
<map version="1.2" tiledversion="1.2.3" orientation="isometric" renderorder="right-down" width="50" height="50" tilewidth="64" tileheight="64" infinite="0" nextlayerid="11" nextobjectid="220">
<tileset firstgid="1" source="Tile_W64_H64_S01.tsx"/>
<tileset firstgid="17" source="Tile_W300_H300_S01.tsx"/>
<layer id="1" name="GroundFloor" width="50" height="50" locked="1">
<data encoding="base64" compression="zlib">
eJztz0ENACAMALGR4F8zNspyjwronZm7xPlcD0sPSw9LD0sPSw9LD0sPSw9LD0sPSw9LD0sPSw9LD0sPSw9LD0sPSw9LD0sPy7bHBg/ldQwR
</data>
</layer>
<objectgroup id="2" name="PlayerStartingPos">
<object id="135" x="1513.33" y="1996">
<object id="135" x="1600" y="1600">
<point/>
</object>
<object id="137" x="2270" y="1640">
<object id="137" x="1600" y="2400">
<point/>
</object>
</objectgroup>
<layer id="3" name="FirsrtFloor" width="50" height="50">
<data encoding="base64" compression="zlib">
eJzt1jEKgDAQRNE0GtD739fGaQIhqJHdCf81aSz2oyspBQAAAADWcUYPMIEaaugU37TvwbGl9y05tYz2wWFfaMiBhhyNKzRs99n7lzo0SG1OcWqQtsWxQdSwD57L3CCjO4dDg7zd+Yye7nxmajlCp5jD6Y4OAAAA4H8XE6wBrA==
eJztz7ENACAMA0EK9p+ZBQBRIJGEu8qlvzUAAACAM/31gQs0xKAhhioN2Tv6Ymcy+52tZfc3W8uOlpi0xFSpBQAAfjIASDsATQ==
</data>
</layer>
<objectgroup id="4" name="Barrier">
<properties>
<property name="type" value="barrier_and_shelter"/>
</properties>
<object id="5" x="1082.23" y="1537.08">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="548.339,-547.082 -94.2284,95.4898 230.657,408.918 867.772,-230"/>
</object>
<object id="213" x="1044" y="1852">
<object id="213" x="1600" y="1600">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="1101.33,-342 470.926,284.848 526.26,339.333 1152.93,-285.091"/>
</object>
<object id="214" x="988" y="1632">
<object id="214" x="2400" y="1600">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="-3,1 -70,72 514,640 588,572"/>
</object>
<object id="215" x="3127.27" y="-6.06061">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 -6.06061,3212.12 81.8182,3209.09 81.8182,-9.09091"/>
</object>
<object id="217" x="-2.75335e-14" y="-6.06061">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 -9.09091,81.8182 3248.48,66.6667 3245.45,-45.4545"/>
</object>
<object id="218" x="-18.1818" y="3115.15">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 -6.06061,109.091 3263.64,93.9394 3266.67,0"/>
</object>
<object id="219" x="-36.3636" y="-30.303">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
<polyline points="0,0 -9.09091,3263.64 106.061,3269.7 118.182,-9.09091"/>
</object>
</objectgroup>
</map>