phaser/v3/src/components/ScrollFactor.js

19 lines
283 B
JavaScript
Raw Normal View History

2017-06-22 02:19:03 +00:00
var ScrollFactor = {
2017-06-26 12:17:31 +00:00
2017-06-22 02:19:03 +00:00
scrollFactorX: 1.0,
scrollFactorY: 1.0,
2017-06-26 12:17:31 +00:00
setScrollFactor: function (x, y)
{
if (x === undefined) { x = y; }
this.scrollFactorX = x;
this.scrollFactorY = y;
return this;
}
2017-06-22 02:19:03 +00:00
};
module.exports = ScrollFactor;