mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
13 lines
299 B
JavaScript
13 lines
299 B
JavaScript
|
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;
|