phaser/v3/src/actions/IncXY.js

13 lines
189 B
JavaScript
Raw Normal View History

var IncXY = function (items, x, y)
{
for (var i = 0; i < items.length; i++)
{
items[i].x += x;
items[i].y += y;
}
return items;
};
module.exports = IncXY;