mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Made it more specific to the tile offset.
This commit is contained in:
parent
a73e47e508
commit
86f1cbcabf
1 changed files with 3 additions and 3 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue