mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-10 04:59:20 +01:00
Tiled 1.9 Compatibility Update
This commit is contained in:
@@ -100,7 +100,7 @@ EXPECTED = [
|
||||
size=common_types.Size(69.3333333333333, 52.6666666666667),
|
||||
coordinates=common_types.OrderedPair(46.3333333333333, 39),
|
||||
visible=True,
|
||||
type="",
|
||||
class_="",
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
"infinite":false,
|
||||
"layers":[
|
||||
{
|
||||
"data":[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48],
|
||||
"data":[1, 2, 3, 4, 5, 6, 7, 8,
|
||||
9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24,
|
||||
25, 26, 27, 28, 29, 30, 31, 32,
|
||||
33, 34, 35, 36, 37, 38, 39, 40,
|
||||
41, 42, 43, 44, 45, 46, 47, 48],
|
||||
"height":6,
|
||||
"id":1,
|
||||
"name":"Tile Layer 1",
|
||||
@@ -34,11 +39,11 @@
|
||||
"name":"Object Layer 1",
|
||||
"objects":[
|
||||
{
|
||||
"class":"",
|
||||
"height":52.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
@@ -88,7 +93,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.7.2",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -97,6 +102,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="6" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="6" nextobjectid="3">
|
||||
<tileset firstgid="1" source="tileset.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="8" height="6" tintcolor="#aaffff" offsetx="1" offsety="3" parallaxx="1.4" parallaxy="1.3">
|
||||
<properties>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":"1.6"
|
||||
"version":"1.8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.5" tiledversion="1.7.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<tileset version="1.9" tiledversion="1.9.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<image source="../../images/tmw_desert_spacing.png" width="265" height="199"/>
|
||||
</tileset>
|
||||
|
||||
@@ -92,7 +92,7 @@ EXPECTED = [
|
||||
size=common_types.Size(69.3333333333333, 52.6666666666667),
|
||||
coordinates=common_types.OrderedPair(46.3333333333333, 39),
|
||||
visible=True,
|
||||
type="",
|
||||
class_="",
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
"name":"Object Layer 1",
|
||||
"objects":[
|
||||
{
|
||||
"class":"",
|
||||
"height":52.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
@@ -63,7 +63,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -72,6 +72,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../all_layer_types/tileset.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="8" height="6">
|
||||
<data encoding="base64">
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":"1.6"
|
||||
"version":"1.8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.5" tiledversion="1.7.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<tileset version="1.9" tiledversion="1.9.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<image source="../../images/tmw_desert_spacing.png" width="265" height="199"/>
|
||||
</tileset>
|
||||
|
||||
@@ -92,7 +92,7 @@ EXPECTED = [
|
||||
size=common_types.Size(69.3333333333333, 52.6666666666667),
|
||||
coordinates=common_types.OrderedPair(46.3333333333333, 39),
|
||||
visible=True,
|
||||
type="",
|
||||
class_="",
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
"name":"Object Layer 1",
|
||||
"objects":[
|
||||
{
|
||||
"class":"",
|
||||
"height":52.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
@@ -63,7 +63,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -72,6 +72,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../all_layer_types/tileset.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="8" height="6">
|
||||
<data encoding="base64" compression="gzip">
|
||||
H4sIAAAAAAAACg3DBRKCQAAAwDMRA7BQLMTE9v+vY3dmWyGEth279uwbOTB26MixExNTM6fOnLtwae7KtYUbt+7ce7D0aOXJsxev3rxb+/Dpy7cfv/782wAcvDirwAAAAA==
|
||||
H4sIAAAAAAAAAw3DBRKCQAAAwDMRA7BQLMTE9v+vY3dmWyGEth279uwbOTB26MixExNTM6fOnLtwae7KtYUbt+7ce7D0aOXJsxev3rxb+/Dpy7cfv/782wAcvDirwAAAAA==
|
||||
</data>
|
||||
</layer>
|
||||
<group id="4" name="Group 1">
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":"1.6"
|
||||
"version":"1.8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.5" tiledversion="1.7.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<tileset version="1.9" tiledversion="1.9.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<image source="../../images/tmw_desert_spacing.png" width="265" height="199"/>
|
||||
</tileset>
|
||||
|
||||
@@ -92,7 +92,7 @@ EXPECTED = [
|
||||
size=common_types.Size(69.3333333333333, 52.6666666666667),
|
||||
coordinates=common_types.OrderedPair(46.3333333333333, 39),
|
||||
visible=True,
|
||||
type="",
|
||||
class_="",
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
"name":"Object Layer 1",
|
||||
"objects":[
|
||||
{
|
||||
"class":"",
|
||||
"height":52.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
@@ -63,7 +63,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -72,6 +72,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../all_layer_types/tileset.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="8" height="6">
|
||||
<data encoding="base64" compression="zlib">
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":"1.6"
|
||||
"version":"1.8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.5" tiledversion="1.7.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<tileset version="1.9" tiledversion="1.9.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<image source="../../images/tmw_desert_spacing.png" width="265" height="199"/>
|
||||
</tileset>
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
"name":"Object Layer 1",
|
||||
"objects":[
|
||||
{
|
||||
"class":"",
|
||||
"height":52.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
@@ -63,7 +63,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.8.5",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -72,6 +72,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.8",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.8" tiledversion="1.8.5" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../all_layer_types/tileset.json"/>
|
||||
<layer id="1" name="Tile Layer 1" width="8" height="6">
|
||||
<data encoding="base64" compression="zstd">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.8.5",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
|
||||
@@ -17,14 +17,28 @@
|
||||
{
|
||||
"chunks":[
|
||||
{
|
||||
"data":[1, 2, 3, 4, 9, 10, 11, 12, 17, 18, 19, 20, 25, 26, 27, 28, 33, 34, 35, 36, 41, 42, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"data":[1, 2, 3, 4,
|
||||
9, 10, 11, 12,
|
||||
17, 18, 19, 20,
|
||||
25, 26, 27, 28,
|
||||
33, 34, 35, 36,
|
||||
41, 42, 43, 44,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0],
|
||||
"height":8,
|
||||
"width":4,
|
||||
"x":0,
|
||||
"y":0
|
||||
},
|
||||
{
|
||||
"data":[5, 6, 7, 8, 13, 14, 15, 16, 21, 22, 23, 24, 29, 30, 31, 32, 37, 38, 39, 40, 45, 46, 47, 48, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"data":[5, 6, 7, 8,
|
||||
13, 14, 15, 16,
|
||||
21, 22, 23, 24,
|
||||
29, 30, 31, 32,
|
||||
37, 38, 39, 40,
|
||||
45, 46, 47, 48,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0],
|
||||
"height":8,
|
||||
"width":4,
|
||||
"x":4,
|
||||
@@ -54,7 +68,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -63,6 +77,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="1" nextlayerid="6" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="1" nextlayerid="6" nextobjectid="3">
|
||||
<editorsettings>
|
||||
<chunksize width="4" height="8"/>
|
||||
<export target="../tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/tests/test_data/layer_tests/all_layer_types"/>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -46,6 +46,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="1" nextlayerid="6" nextobjectid="3">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" width="8" height="6" tilewidth="32" tileheight="32" infinite="1" nextlayerid="6" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../all_layer_types/tileset.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="16" height="16" offsetx="1" offsety="3">
|
||||
<properties>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"value":"Hello, World!!"
|
||||
}],
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
@@ -51,6 +51,6 @@
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":"1.6",
|
||||
"version":"1.9",
|
||||
"width":8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.5" tiledversion="1.7.0" orientation="orthogonal" renderorder="right-down" compressionlevel="0" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||
<map version="1.9" tiledversion="1.9.0" orientation="orthogonal" renderorder="right-down" compressionlevel="0" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||
<properties>
|
||||
<property name="bool property - false" type="bool" value="false"/>
|
||||
<property name="bool property - true" type="bool" value="true"/>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.9.0",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":"1.6"
|
||||
"version":"1.8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.5" tiledversion="1.7.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<tileset version="1.9" tiledversion="1.9.0" name="tile_set_image" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
|
||||
<image source="../../images/tmw_desert_spacing.png" width="265" height="199"/>
|
||||
</tileset>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"class":"",
|
||||
"visible":true,
|
||||
"width":69.3333333333333,
|
||||
"x":46.3333333333333,
|
||||
|
||||
Reference in New Issue
Block a user