mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 13:03:36 +00:00
18 lines
343 B
JavaScript
18 lines
343 B
JavaScript
|
var SetScale = function (items, x, y, stepX, stepY)
|
||
|
{
|
||
|
if (stepX === undefined) { stepX = 0; }
|
||
|
if (stepY === undefined) { stepY = 0; }
|
||
|
|
||
|
for (var i = 0; i < items.length; i++)
|
||
|
{
|
||
|
items[i].setScale(
|
||
|
x + (i * stepX),
|
||
|
y + (i * stepY)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
return items;
|
||
|
};
|
||
|
|
||
|
module.exports = SetScale;
|