Jump to content

Phaser forcing game world to resize upon leaving fullscreen mode


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() ->


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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