You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with Phaser 2.4.3, the Phaser.Canvas.create method has changed : create(width, height, id) => create(parent, width, height, id, skipPool)
Therefore this plugins doesn't work anymore because of this line : this.scaledCanvas = Phaser.Canvas.create(this.scaledWidth, this.scaledHeight);
The width value is interpreted as parent argument and the height goes in the width. height gets the default value.
To solve this, I replaced this line with : this.scaledCanvas = Phaser.Canvas.create(null, this.scaledWidth, this.scaledHeight, null, true);
The text was updated successfully, but these errors were encountered:
Starting with Phaser 2.4.3, the
Phaser.Canvas.create
method has changed :create(width, height, id)
=>create(parent, width, height, id, skipPool)
Therefore this plugins doesn't work anymore because of this line :
this.scaledCanvas = Phaser.Canvas.create(this.scaledWidth, this.scaledHeight);
The
width
value is interpreted asparent
argument and theheight
goes in thewidth
.height
gets the default value.To solve this, I replaced this line with :
this.scaledCanvas = Phaser.Canvas.create(null, this.scaledWidth, this.scaledHeight, null, true);
The text was updated successfully, but these errors were encountered: