Jump to content

How to scale game to fit mobile screens?


Bossman759
 Share

Recommended Posts

I wrote an article on how to do this : http://www.loopeex.com/adjusting-resize-on-mobile-devices/

You can also resize it proportionnaly with Phaser min and max width/height :

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.maxWidth = 768;this.scale.maxHeight = 1152;
Link to comment
Share on other sites

 

I wrote an article on how to do this : http://www.loopeex.com/adjusting-resize-on-mobile-devices/

You can also resize it proportionnaly with Phaser min and max width/height :

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.maxWidth = 768;this.scale.maxHeight = 1152;

 

I tried using the code from that reply and it worked but I had on my pc when I had it full sized and then resized the window. On my phone it just stayed at normal size but zoomed in so I was only able to see part of the game.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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