samme / phaser-plugin-game-scale

Scale or resize the game canvas. Phaser v3.15 only
https://www.npmjs.com/package/phaser-plugin-game-scale
36 stars 3 forks source link

this.game.resize seems broken in phaser 3.16.2 #3

Open meetpatel1989 opened 5 years ago

meetpatel1989 commented 5 years ago

Hi, samme! first of all, thank you for making this awesome plugin :)

The plugin was working very well until I update phaser to 3.16.2. It is showing error in GameScenePlugin.js on line this.game.resize(width, height);

In new phaser resize function has been removed & we need to use scale manager resize function instead. I try to update it with same and resolved the error but now the game is not getting resized.

can you please look into this?

Thank you.

samme commented 5 years ago

Hi. I'd assumed that in v3.16 people would just use the built-in Scale Manager instead of the plugin. I haven't tried it yet myself so I don't really know.