phaser/v3/src/gameobjects/tilemap/components/ForEachTile.js

10 lines
312 B
JavaScript
Raw Normal View History

var GetTilesWithin = require('./GetTilesWithin');
var ForEachTile = function (callback, context, tileX, tileY, width, height, filteringOptions, layer)
{
var tiles = GetTilesWithin(tileX, tileY, width, height, filteringOptions, layer);
tiles.forEach(callback, context);
};
module.exports = ForEachTile;