From 67b787ab7cf1cf82fa0710c80b78c986a79ad75d Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 15 Oct 2020 11:09:52 +0100 Subject: [PATCH] Update GetTilesWithinWorldXY.js --- src/tilemaps/components/GetTilesWithinWorldXY.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tilemaps/components/GetTilesWithinWorldXY.js b/src/tilemaps/components/GetTilesWithinWorldXY.js index c5bc3fce3..78867002d 100644 --- a/src/tilemaps/components/GetTilesWithinWorldXY.js +++ b/src/tilemaps/components/GetTilesWithinWorldXY.js @@ -31,13 +31,13 @@ var pointEnd = new Vector2(); */ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOptions, camera, layer) { - // Top left corner of the rect, rounded down to include partial tiles + // Top left corner of the rect, rounded down to include partial tiles layer.tilemapLayer.worldToTileXY(worldX, worldY, true, pointStart, camera); var xStart = pointStart.x; var yStart = pointStart.y; - // Bottom right corner of the rect, rounded up to include partial tiles + // Bottom right corner of the rect, rounded up to include partial tiles layer.tilemapLayer.worldToTileXY(worldX + width, worldY + height, false, pointEnd, camera); var xEnd = Math.ceil(pointEnd.x);