phaser/src/gameobjects/components/ScrollFactor.js
2018-01-09 21:43:56 +00:00

18 lines
279 B
JavaScript

var ScrollFactor = {
scrollFactorX: 1,
scrollFactorY: 1,
setScrollFactor: function (x, y)
{
if (y === undefined) { y = x; }
this.scrollFactorX = x;
this.scrollFactorY = y;
return this;
}
};
module.exports = ScrollFactor;