phaser/v3/src/gameobjects/components/ScrollFactor.js

18 lines
283 B
JavaScript

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