mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Testing filterOptions to avoid needless iterations
This commit is contained in:
parent
c45caa86df
commit
aedf666ffc
1 changed files with 3 additions and 0 deletions
|
@ -2208,6 +2208,9 @@ var World = new Class({
|
|||
|
||||
var mapData = GetTilesWithinWorldXY(x, y, w, h, null, tilemapLayer.scene.cameras.main, tilemapLayer.layer);
|
||||
|
||||
// var mapData = GetTilesWithinWorldXY(x, y, w, h, { isColliding: true, isNotEmpty: true }, tilemapLayer.scene.cameras.main, tilemapLayer.layer);
|
||||
// console.log(mapData.length);
|
||||
|
||||
if (mapData.length === 0)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue