File size: 535 Bytes
597ee18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | var GetRight = require('../bounds/GetRight');
var GetBottom = require('../bounds/GetBottom');
var SetRight = require('../bounds/SetRight');
var SetBottom = require('../bounds/SetBottom');
var InBottomRight = function (gameObject, container, offsetX, offsetY)
{
if (offsetX === undefined) { offsetX = 0; }
if (offsetY === undefined) { offsetY = 0; }
SetRight(gameObject, GetRight(container) + offsetX);
SetBottom(gameObject, GetBottom(container) + offsetY);
return gameObject;
};
module.exports = InBottomRight;
|