phaser/v3/src/actions/SetScaleX.js

14 lines
243 B
JavaScript
Raw Normal View History

2017-03-28 13:30:43 +00:00
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;