mirror of
https://github.com/photonstorm/phaser
synced 2025-01-11 20:58:56 +00:00
13 lines
228 B
JavaScript
13 lines
228 B
JavaScript
var SetY = function (items, value, step)
|
|
{
|
|
if (step === undefined) { step = 0; }
|
|
|
|
for (var i = 0; i < items.length; i++)
|
|
{
|
|
items[i].y = value + (i * step);
|
|
}
|
|
|
|
return items;
|
|
};
|
|
|
|
module.exports = SetY;
|