Jump to content

Problem with Scale Manager on start in mobile device


Wasyl
 Share

Recommended Posts

Hi.

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;            
        this.game.scale.refresh();
         this.scale.updateLayout(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

 Share

  • Recently Browsing   0 members

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