mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Added setScrollFactor method.
This commit is contained in:
parent
c5242004c4
commit
2aadd2ac79
1 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,18 @@
|
|||
var ScrollFactor = {
|
||||
|
||||
scrollFactorX: 1.0,
|
||||
scrollFactorY: 1.0,
|
||||
|
||||
setScrollFactor: function (x, y)
|
||||
{
|
||||
if (x === undefined) { x = y; }
|
||||
|
||||
this.scrollFactorX = x;
|
||||
this.scrollFactorY = y;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
module.exports = ScrollFactor;
|
||||
|
|
Loading…
Reference in a new issue