Revert "Change positioning for isometric object layer from Tiled"

This reverts commit 33f242a2e0.
This commit is contained in:
Leonardo Farroco 2021-10-03 16:29:40 -03:00
parent 80d33aa886
commit e6b249acf4

View file

@ -130610,19 +130610,6 @@ var Tilemap = new Class({
sprite.displayHeight = obj.height;
}
if (this.orientation === ORIENTATION.ISOMETRIC)
{
var isometricPosition = {
x: sprite.x - sprite.y,
y: (sprite.x + sprite.y) / 2
}
sprite.x = isometricPosition.x
sprite.y = isometricPosition.y
}
// Origin is (0, 1) in Tiled, so find the offset that matches the Sprites origin.
// Do not offset objects with zero dimensions (e.g. points).
var offset = {