phaser/v3/src/actions/SetScaleX.js
2017-03-28 14:30:43 +01:00

13 lines
243 B
JavaScript

var SetScaleX = function (items, value, step)
{
if (step === undefined) { step = 0; }
for (var i = 0; i < items.length; i++)
{
items[i].scaleX = value + (i * step);
}
return items;
};
module.exports = SetScaleX;