mirror of
https://github.com/photonstorm/phaser
synced 2024-12-20 01:55:45 +00:00
b3bced081a
Added RandomTriangle Action.
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
var Random = require('../geom/triangle/Random');
|
|
|
|
var RandomTriangle = function (items, triangle)
|
|
{
|
|
for (var i = 0; i < items.length; i++)
|
|
{
|
|
Random(triangle, items[i]);
|
|
}
|
|
|
|
return items;
|
|
};
|
|
|
|
module.exports = RandomTriangle;
|