phaser/v3/src/geom/rectangle/Floor.js

10 lines
142 B
JavaScript
Raw Normal View History

2016-12-20 17:07:16 +00:00
var Floor = function (rect)
{
rect.x = Math.floor(rect.x);
rect.y = Math.floor(rect.y);
return rect;
};
module.exports = Floor;