Fix for only one parallax value being set. (#45)

This commit is contained in:
Darren Eberly
2021-10-12 19:57:30 -04:00
parent 82122c3e3d
commit e19e9e64dd
3 changed files with 12 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ EXPECTED = [
opacity=1,
visible=True,
id=4,
parallax_factor=common_types.OrderedPair(2.3, 1.2),
parallax_factor=common_types.OrderedPair(1.4, 1.0),
tint_color=common_types.Color(0, 0, 255, 255),
layers=[
layer.ObjectLayer(
@@ -122,7 +122,7 @@ EXPECTED = [
opacity=1,
visible=True,
id=5,
parallax_factor=common_types.OrderedPair(1.5, 1.2),
parallax_factor=common_types.OrderedPair(1.0, 1.4),
image=Path("../../images/tile_04.png"),
),
]

View File

@@ -52,8 +52,7 @@
}],
"name":"Group 1",
"opacity":1,
"parallaxx":2.3,
"parallaxy":1.2,
"parallaxx":1.4,
"tintcolor":"#0000ff",
"type":"group",
"visible":true,
@@ -79,8 +78,7 @@
"image":"..\/..\/images\/tile_04.png",
"name":"Image Layer 2",
"opacity":1,
"parallaxx":1.5,
"parallaxy":1.2,
"parallaxy":1.4,
"type":"imagelayer",
"visible":true,
"x":0,