mirror of
https://github.com/photonstorm/phaser
synced 2025-01-02 08:18:47 +00:00
14 lines
228 B
JavaScript
14 lines
228 B
JavaScript
|
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;
|