mirror of
https://github.com/photonstorm/phaser
synced 2024-11-29 16:10:56 +00:00
Tile's flip/rotation is now only set by the flipX, flipY and rotation props
This commit is contained in:
parent
5c0872485c
commit
50434227ac
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue