Jump to content

Problem with Scale Manager on start in mobile device


Recommended Posts


I trying run my game on mobile devices and I've problem with scaling.

This my code:

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;        
        this.scale.minWidth = 320;            
        this.scale.minHeight = 320;            
        this.scale.maxWidth = Config.GAME_WIDTH; //You can change this to gameWidth*2.5 if needed            
        this.scale.maxHeight = Config.GAME_HEIGHT;  //Make sure these values are proportional to the gameWidth and gameHeight            
        this.scale.pageAlignVertically = true;            

In chrome devtools on start everything is ok, but when I run game on my smartphone nothing happen until I change orientaton.

Any ideas?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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