Update level2 map dimensions and data structure
- Increased map height from 9 to 13 tiles - Changed infinite property from true to false - Removed chunked data structure in favor of direct data arrays - Updated both JSON and TMX files to maintain consistency - Adjusted layer heights to match new map dimensions
This commit is contained in:
parent
d2dc2f38ad
commit
7112571a2b
|
|
@ -1,37 +1,25 @@
|
|||
{ "compressionlevel":-1,
|
||||
"height":9,
|
||||
"infinite":true,
|
||||
"height":13,
|
||||
"infinite":false,
|
||||
"layers":[
|
||||
{
|
||||
"chunks":[
|
||||
{
|
||||
"data":[4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
2, 2, 2, 2, 2, 1, 2, 2, 4, 4, 4, 2, 0, 0, 0, 0,
|
||||
2, 7, 7, 7, 7, 1, 2, 1, 1, 1, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"height":16,
|
||||
"width":16,
|
||||
"x":0,
|
||||
"y":0
|
||||
}],
|
||||
"height":16,
|
||||
"data":[4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0,
|
||||
2, 2, 2, 2, 2, 1, 2, 2, 4, 4, 4, 2, 0, 0, 0, 0,
|
||||
2, 7, 7, 7, 7, 1, 2, 1, 1, 1, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 2, 0, 0, 0, 0,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0],
|
||||
"height":13,
|
||||
"id":1,
|
||||
"name":"main",
|
||||
"opacity":1,
|
||||
"startx":0,
|
||||
"starty":0,
|
||||
"type":"tilelayer",
|
||||
"visible":true,
|
||||
"width":16,
|
||||
|
|
@ -39,35 +27,23 @@
|
|||
"y":0
|
||||
},
|
||||
{
|
||||
"chunks":[
|
||||
{
|
||||
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 16, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 16, 0, 0, 16, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 16, 16, 0, 0, 0, 0, 0, 0,
|
||||
16, 0, 16, 0, 0, 16, 16, 0, 0, 0, 0, 16, 0, 0, 0, 0,
|
||||
0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 16, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"height":13,
|
||||
"id":2,
|
||||
"name":"platforms",
|
||||
"opacity":1,
|
||||
"startx":0,
|
||||
"starty":0,
|
||||
"type":"tilelayer",
|
||||
"visible":true,
|
||||
"width":16,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="16" height="9" tilewidth="200" tileheight="200" infinite="1" nextlayerid="3" nextobjectid="1">
|
||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="16" height="13" tilewidth="200" tileheight="200" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||
<editorsettings>
|
||||
<export target="../level2.json" format="json"/>
|
||||
</editorsettings>
|
||||
<tileset firstgid="1" name="terrain" tilewidth="200" tileheight="200" tilecount="25" columns="5">
|
||||
<image source="../terrain.png" width="1000" height="1000"/>
|
||||
<tile id="1">
|
||||
|
|
@ -23,9 +26,8 @@
|
|||
</properties>
|
||||
</tile>
|
||||
</tileset>
|
||||
<layer id="1" name="main" width="16" height="9">
|
||||
<layer id="1" name="main" width="16" height="13">
|
||||
<data encoding="csv">
|
||||
<chunk x="0" y="0" width="16" height="16">
|
||||
4,4,12,2,2,1,2,2,4,4,4,12,0,0,0,0,
|
||||
4,4,12,2,2,1,2,2,4,4,4,12,0,0,0,0,
|
||||
4,4,12,2,2,1,2,2,4,4,4,12,0,0,0,0,
|
||||
|
|
@ -38,16 +40,11 @@
|
|||
2,1,2,2,2,2,2,1,2,2,1,2,0,0,0,0,
|
||||
2,1,2,2,1,1,1,1,2,2,1,2,0,0,0,0,
|
||||
2,1,1,1,1,2,2,2,2,2,1,2,0,0,0,0,
|
||||
2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
</chunk>
|
||||
</data>
|
||||
2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0
|
||||
</data>
|
||||
</layer>
|
||||
<layer id="2" name="platforms" width="16" height="9">
|
||||
<layer id="2" name="platforms" width="16" height="13">
|
||||
<data encoding="csv">
|
||||
<chunk x="0" y="0" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
|
|
@ -60,11 +57,7 @@
|
|||
16,0,16,0,0,16,16,0,0,0,0,16,0,0,0,0,
|
||||
0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,16,0,0,16,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
</chunk>
|
||||
</data>
|
||||
</data>
|
||||
</layer>
|
||||
</map>
|
||||
|
|
|
|||
Loading…
Reference in New Issue