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

13 lines
299 B
JavaScript
Raw Normal View History

var GetTilesWithin = require('./GetTilesWithin');
var Fill = function (index, tileX, tileY, width, height, layer)
{
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);
for (var i = 0; i < tiles.length; i++)
{
tiles[i].index = index;
}
};
module.exports = Fill;