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

10 lines
276 B
JavaScript
Raw Normal View History

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;