mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 03:53:28 +00:00
13 lines
243 B
JavaScript
13 lines
243 B
JavaScript
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;
|