fitness23 Posted June 1, 2016 Share Posted June 1, 2016 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 More sharing options...
carlosnufe Posted June 1, 2016 Share Posted June 1, 2016 You could try to request full screen mode and the address bar will be hidden. You could try Apache cordova as well. Link to comment Share on other sites More sharing options...
fitness23 Posted June 1, 2016 Author Share Posted June 1, 2016 To give some better context when I was using phaser version 1.8.2 and using the following line, it worked: this.scale.setScreenSize(true); But ever since upgrading the Phaser version, setScreenSize is no longer supported and therefore doesn't scale vertically. Here's the game currently = http://www.andy-howard.com/pinata-plight/index.html Link to comment Share on other sites More sharing options...
Recommended Posts