From ddbcf85194d4211bba5b6201fae1e52c23e244a8 Mon Sep 17 00:00:00 2001 From: No Date: Fri, 17 Jan 2020 14:49:02 +0100 Subject: [PATCH] woops --- src/tilemaps/components/TileToWorldXY.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tilemaps/components/TileToWorldXY.js b/src/tilemaps/components/TileToWorldXY.js index 70e89a7ab..219fa6c29 100644 --- a/src/tilemaps/components/TileToWorldXY.js +++ b/src/tilemaps/components/TileToWorldXY.js @@ -37,8 +37,8 @@ var TileToWorldXY = function (tileX, tileY, point, camera, layer, orientation) point.x = TileToWorldX(tileX, camera, layer, orientation); point.y = TileToWorldY(tileY, camera, layer, orientation); } else if (orientation === "isometric") { - point.x = (WorldX - WorldY) * (tileWidth/2); - point.y = (WorldX + WorldY) * (tileHeight/2); + point.x = (tileX - tileY) * (tileWidth/2); + point.y = (tileX + tileY) * (tileHeight/2); }