phaser/v3/src/actions/SetRotation.js

14 lines
249 B
JavaScript
Raw Normal View History

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;