mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 04:53:38 +00:00
14 lines
242 B
JavaScript
14 lines
242 B
JavaScript
|
var Random = require('../geom/rectangle/Random');
|
||
|
|
||
|
var RandomRectangle = function (items, rect)
|
||
|
{
|
||
|
for (var i = 0; i < items.length; i++)
|
||
|
{
|
||
|
Random(rect, items[i]);
|
||
|
}
|
||
|
|
||
|
return items;
|
||
|
};
|
||
|
|
||
|
module.exports = RandomRectangle;
|