mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-30 08:08:55 +01:00
Add support for parallax origin in maps
This commit is contained in:
@@ -10,10 +10,11 @@ EXPECTED = tiled_map.TiledMap(
|
||||
next_object_id=1,
|
||||
orientation="orthogonal",
|
||||
render_order="right-down",
|
||||
tiled_version="1.6.0",
|
||||
tiled_version="1.9.1",
|
||||
tile_size=common_types.Size(32, 32),
|
||||
version="1.6",
|
||||
version="1.9",
|
||||
background_color=common_types.Color(255, 0, 4, 255),
|
||||
parallax_origin=common_types.OrderedPair(10, 15),
|
||||
tilesets={
|
||||
1: tileset.Tileset(
|
||||
columns=8,
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
"nextlayerid":2,
|
||||
"nextobjectid":1,
|
||||
"orientation":"orthogonal",
|
||||
"parallaxoriginx":10,
|
||||
"parallaxoriginy":15,
|
||||
"properties":[
|
||||
{
|
||||
"name":"bool property - true",
|
||||
@@ -38,7 +40,7 @@
|
||||
"value":"Hello, World!!"
|
||||
}],
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.9.0",
|
||||
"tiledversion":"1.9.1",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
|
||||
@@ -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" backgroundcolor="#ff0004" nextlayerid="2" nextobjectid="1">
|
||||
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" compressionlevel="0" width="8" height="6" tilewidth="32" tileheight="32" infinite="0" parallaxoriginx="10" parallaxoriginy="15" backgroundcolor="#ff0004" nextlayerid="2" nextobjectid="1">
|
||||
<properties>
|
||||
<property name="bool property - true" type="bool" value="true"/>
|
||||
<property name="color property" type="color" value="#ff49fcff"/>
|
||||
|
||||
Reference in New Issue
Block a user