Jump to content

Phaser forcing game world to resize upon leaving fullscreen mode


SantosR
 Share

Recommended Posts

I have a game where the game world is way bigger than the screen size, so that I can scroll the camera. It works fine except when adding the fullscreen functionality: Upon leaving fullscreen mode it seems that Phaser forces a resize on the game world making it match the screen size.

 

I tracked it to this function: ScaleManager.prepScreenMode() ->

https://github.com/photonstorm/phaser/blob/c9c85330ab60547b39ba4c9400c258ed7fb2a317/src/core/ScaleManager.js

line 1909:

  // Always reset to game size
            this.updateDimensions(this._gameSize.width, this._gameSize.height, true);

 

Is it supposed to behave like this?

 

Thanks for your time,

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...