Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Game doesn't scale vertically


fitness23
 Share

Recommended Posts

I am using the following code to ensure that my game scales. I would like it to scale to the same aspect ratio:

this.scale.minWidth = 200;
this.scale.minHeight = 122;
this.scale.maxWidth = 720;
this.scale.maxHeight = 440;
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.pageAlignHorizontally = true;

However when scaling the page, the game only scales when I shrink the sides down (page width). If I am to increase / decrease the window height it doesn't scale. Has anyone else come across this?

The reason why this is a problem is that when on Safari Mobile if I accidentally tap the top part of the screen the browsers toolbar comes in but the game won't scale and then I'm missing the bottom part of the game.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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