Bossman759 Posted June 1, 2014 Share Posted June 1, 2014 Is there any way for me to scale the game to fit a mobile screen? Link to comment Share on other sites More sharing options...
Loopeex Posted June 1, 2014 Share Posted June 1, 2014 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; Sam, quiphop, Bossman759 and 1 other 4 Link to comment Share on other sites More sharing options...
Bossman759 Posted June 1, 2014 Author Share Posted June 1, 2014 Thanks I'll try this! Link to comment Share on other sites More sharing options...
Bossman759 Posted June 1, 2014 Author Share Posted June 1, 2014 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 More sharing options...
Bossman759 Posted June 1, 2014 Author Share Posted June 1, 2014 Nevermind, I fixed it by addinggame.scale.refresh();under the code you posted. Thanks KevinnFtw and Sam 2 Link to comment Share on other sites More sharing options...
Recommended Posts