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