Skip to content

Commit 5ada704

Browse files
committed
Modified tile sizes.
1 parent 8f3de12 commit 5ada704

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/tilemaps/components/CullTiles.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ var CullTiles = function (layer, camera, outputArray)
5454

5555
if (!tilemapLayer.skipCull)
5656
{
57-
drawLeft = Math.max(0, boundsLeft / layer.tileWidth);
58-
drawRight = Math.min(mapWidth, boundsRight / layer.tileWidth);
59-
drawTop = Math.max(0, boundsTop / layer.tileHeight);
60-
drawBottom = Math.min(mapHeight, boundsBottom / layer.tileHeight);
57+
drawLeft = Math.max(0, boundsLeft / tileW);
58+
drawRight = Math.min(mapWidth, boundsRight / tileW);
59+
drawTop = Math.max(0, boundsTop / tileH);
60+
drawBottom = Math.min(mapHeight, boundsBottom / tileH);
6161
}
6262

6363
for (y = drawTop; y < drawBottom; y++)

0 commit comments

Comments
 (0)