mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 07:40:11 +01:00
Default layer offsets to 0, 0 if not present
This commit is contained in:
@@ -108,6 +108,7 @@ EXPECTED = [
|
||||
),
|
||||
layer.ImageLayer(
|
||||
name="Image Layer 1",
|
||||
offset=common_types.OrderedPair(1, 4),
|
||||
opacity=1,
|
||||
visible=True,
|
||||
id=3,
|
||||
@@ -117,6 +118,7 @@ EXPECTED = [
|
||||
),
|
||||
layer.ImageLayer(
|
||||
name="Image Layer 2",
|
||||
offset=common_types.OrderedPair(0, 0),
|
||||
opacity=1,
|
||||
visible=True,
|
||||
id=5,
|
||||
|
||||
@@ -64,6 +64,8 @@
|
||||
"id":3,
|
||||
"image":"..\/..\/images\/tile_04.png",
|
||||
"name":"Image Layer 1",
|
||||
"offsetx":1,
|
||||
"offsety":4,
|
||||
"opacity":1,
|
||||
"tintcolor":"#ff0000",
|
||||
"transparentcolor":"#000000",
|
||||
@@ -88,7 +90,7 @@
|
||||
"nextobjectid":3,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"1.6.0",
|
||||
"tiledversion":"1.7.2",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user