phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
36.91k stars 7.08k forks source link

Resize/Fit to Screen Issue in Phaser 3.13.0 #4076

Closed hsan999 closed 5 years ago

hsan999 commented 5 years ago

Version 3.13.0

First things first, thank you for the Facebook Instant Games Plugin!

I got right into using it over the weekend, but ran into some stubborn fit to to screen issues. Perhaps this is not a bug but just something I need to handle differently in the new version.

I upgraded to Phaser 3.13.0 over the weekend and all worked fine except that now my game is not resizing properly (I am simply stretching to fit). I have attached screenshots. I have narrowed it down to the phaser.min.js file in the new version that is causing the change (NOT phaser-facebook-instant-games.min.js). The version from Phaser 3.11 fits appropriately to screen. I'd really like to try out the new Facebook Instant Games features (working great so far! Thank you!) but unfortunately this fill screen thing is probably going to keep me from moving forward.

This is the only code used to resize, and it works flawlessly in 3.11

`