mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-08 12:17:01 +01:00
Add support for repeatx and repeaty on layeres
This commit is contained in:
@@ -115,6 +115,7 @@ EXPECTED = [
|
||||
image=Path("../../images/tile_04.png"),
|
||||
transparent_color=common_types.Color(0, 0, 0, 255),
|
||||
tint_color=common_types.Color(255, 0, 0, 255),
|
||||
repeat_y=True,
|
||||
),
|
||||
layer.ImageLayer(
|
||||
name="Image Layer 2",
|
||||
@@ -124,5 +125,6 @@ EXPECTED = [
|
||||
id=5,
|
||||
parallax_factor=common_types.OrderedPair(1.0, 1.4),
|
||||
image=Path("../../images/tile_04.png"),
|
||||
repeat_x=True,
|
||||
),
|
||||
]
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
"offsetx":1,
|
||||
"offsety":4,
|
||||
"opacity":1,
|
||||
"repeaty":true,
|
||||
"tintcolor":"#ff0000",
|
||||
"transparentcolor":"#000000",
|
||||
"type":"imagelayer",
|
||||
@@ -84,6 +85,7 @@
|
||||
"name":"Image Layer 2",
|
||||
"opacity":1,
|
||||
"parallaxy":1.4,
|
||||
"repeatx":true,
|
||||
"type":"imagelayer",
|
||||
"visible":true,
|
||||
"x":0,
|
||||
@@ -93,7 +95,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"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.9" tiledversion="1.9.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.1" 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>
|
||||
@@ -19,10 +19,10 @@
|
||||
<object id="1" x="46.3333" y="39" width="69.3333" height="52.6667"/>
|
||||
</objectgroup>
|
||||
</group>
|
||||
<imagelayer id="3" name="Image Layer 1" tintcolor="#ff0000" offsetx="1" offsety="4">
|
||||
<imagelayer id="3" name="Image Layer 1" tintcolor="#ff0000" offsetx="1" offsety="4" repeaty="1">
|
||||
<image source="../../images/tile_04.png" trans="000000" width="32" height="32"/>
|
||||
</imagelayer>
|
||||
<imagelayer id="5" name="Image Layer 2" parallaxy="1.4">
|
||||
<imagelayer id="5" name="Image Layer 2" parallaxy="1.4" repeatx="1">
|
||||
<image source="../../images/tile_04.png" width="32" height="32"/>
|
||||
</imagelayer>
|
||||
</map>
|
||||
|
||||
Reference in New Issue
Block a user