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:
Brian Fertig 2025-09-06 21:20:49 -06:00
parent d2dc2f38ad
commit 7112571a2b
2 changed files with 39 additions and 70 deletions

View File

@ -1,9 +1,7 @@
{ "compressionlevel":-1, { "compressionlevel":-1,
"height":9, "height":13,
"infinite":true, "infinite":false,
"layers":[ "layers":[
{
"chunks":[
{ {
"data":[4, 4, 12, 2, 2, 1, 2, 2, 4, 4, 4, 12, 0, 0, 0, 0, "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,
@ -17,29 +15,17 @@
2, 1, 2, 2, 2, 2, 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, 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, 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, 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, "height":13,
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,
"id":1, "id":1,
"name":"main", "name":"main",
"opacity":1, "opacity":1,
"startx":0,
"starty":0,
"type":"tilelayer", "type":"tilelayer",
"visible":true, "visible":true,
"width":16, "width":16,
"x":0, "x":0,
"y":0 "y":0
}, },
{
"chunks":[
{ {
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "data":[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,
@ -53,21 +39,11 @@
16, 0, 16, 0, 0, 16, 16, 0, 0, 0, 0, 16, 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, 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, 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], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":16, "height":13,
"width":16,
"x":0,
"y":0
}],
"height":16,
"id":2, "id":2,
"name":"platforms", "name":"platforms",
"opacity":1, "opacity":1,
"startx":0,
"starty":0,
"type":"tilelayer", "type":"tilelayer",
"visible":true, "visible":true,
"width":16, "width":16,

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-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"> <tileset firstgid="1" name="terrain" tilewidth="200" tileheight="200" tilecount="25" columns="5">
<image source="../terrain.png" width="1000" height="1000"/> <image source="../terrain.png" width="1000" height="1000"/>
<tile id="1"> <tile id="1">
@ -23,9 +26,8 @@
</properties> </properties>
</tile> </tile>
</tileset> </tileset>
<layer id="1" name="main" width="16" height="9"> <layer id="1" name="main" width="16" height="13">
<data encoding="csv"> <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, 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,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,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,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, 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> </data>
</layer> </layer>
<layer id="2" name="platforms" width="16" height="9"> <layer id="2" name="platforms" width="16" height="13">
<data encoding="csv"> <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,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,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,
@ -60,11 +57,7 @@
16,0,16,0,0,16,16,0,0,0,0,16,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,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,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 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
</data> </data>
</layer> </layer>
</map> </map>