diff --git a/src/tilemaps/components/CullTiles.js b/src/tilemaps/components/CullTiles.js index 5249b414c..41c989022 100644 --- a/src/tilemaps/components/CullTiles.js +++ b/src/tilemaps/components/CullTiles.js @@ -69,9 +69,9 @@ var CullTiles = function (layer, camera, outputArray) { continue; } - - var tileX = tilemapLayer.x + (tile.pixelX * a + tile.pixelY * c + e); - var tileY = tilemapLayer.y + (tile.pixelX * b + tile.pixelY * d + f); + + var tileX = ((tile.pixelX + tilemapLayer.x) * a + (tile.pixelY + tilemapLayer.y) * c + e); + var tileY = ((tile.pixelX + tilemapLayer.x) * b + (tile.pixelY + tilemapLayer.y) * d + f); if (tile.visible && tileX >= tCullX &&