mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 04:23:30 +00:00
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
|
var SetRotation = function (items, value, step)
|
||
|
{
|
||
|
if (step === undefined) { step = 0; }
|
||
|
|
||
|
for (var i = 0; i < items.length; i++)
|
||
|
{
|
||
|
items[i].rotation = value + (i * step);
|
||
|
}
|
||
|
|
||
|
return items;
|
||
|
};
|
||
|
|
||
|
module.exports = SetRotation;
|