mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
10 lines
276 B
JavaScript
10 lines
276 B
JavaScript
|
var GetTilesWithin = require("./GetTilesWithin");
|
||
|
|
||
|
var ForEachTile = function (callback, context, tileX, tileY, width, height, layer)
|
||
|
{
|
||
|
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);
|
||
|
tiles.forEach(callback, context);
|
||
|
};
|
||
|
|
||
|
module.exports = ForEachTile;
|