Tile's flip/rotation is now only set by the flipX, flipY and rotation props

This commit is contained in:
Michael Hadley 2018-02-06 18:17:15 -06:00
parent 5c0872485c
commit 50434227ac

View file

@ -67,11 +67,10 @@ var ParseTileLayers = function (json, insertNull)
var tile = new Tile(layerData, gidInfo.gid, x, output.length, json.tilewidth, var tile = new Tile(layerData, gidInfo.gid, x, output.length, json.tilewidth,
json.tileheight); json.tileheight);
// Turning Tiled's FlippedHorizontal, FlippedVertical and FlippedAntiDiagonal
// propeties into flipX, flipY and rotation
tile.rotation = gidInfo.rotation; tile.rotation = gidInfo.rotation;
tile.flipped = gidInfo.flipped; tile.flipX = gidInfo.flipped;
tile.flippedHorizontal = gidInfo.flippedHorizontal;
tile.flippedVertical = gidInfo.flippedVertical;
tile.flippedAntiDiagonal = gidInfo.flippedAntiDiagonal;
row.push(tile); row.push(tile);
} }