From 50434227ac140560fd8a406b5ca63367daabe3a2 Mon Sep 17 00:00:00 2001 From: Michael Hadley Date: Tue, 6 Feb 2018 18:17:15 -0600 Subject: [PATCH] Tile's flip/rotation is now only set by the flipX, flipY and rotation props --- .../tilemap/parsers/parsetiledjson/ParseTileLayers.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gameobjects/tilemap/parsers/parsetiledjson/ParseTileLayers.js b/src/gameobjects/tilemap/parsers/parsetiledjson/ParseTileLayers.js index 0ec7872d4..29bf0fcd5 100644 --- a/src/gameobjects/tilemap/parsers/parsetiledjson/ParseTileLayers.js +++ b/src/gameobjects/tilemap/parsers/parsetiledjson/ParseTileLayers.js @@ -67,11 +67,10 @@ var ParseTileLayers = function (json, insertNull) var tile = new Tile(layerData, gidInfo.gid, x, output.length, json.tilewidth, json.tileheight); + // Turning Tiled's FlippedHorizontal, FlippedVertical and FlippedAntiDiagonal + // propeties into flipX, flipY and rotation tile.rotation = gidInfo.rotation; - tile.flipped = gidInfo.flipped; - tile.flippedHorizontal = gidInfo.flippedHorizontal; - tile.flippedVertical = gidInfo.flippedVertical; - tile.flippedAntiDiagonal = gidInfo.flippedAntiDiagonal; + tile.flipX = gidInfo.flipped; row.push(tile); }