phaser/v3/src/actions/SetX.js

14 lines
228 B
JavaScript
Raw Normal View History

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