mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 21:28:53 +00:00
18 lines
283 B
JavaScript
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;
|