Jump to content

How to fix scaling on ios devices


Bossman759
 Share

Recommended Posts

When I try to play my game on an ios device, the game gets cut off and you can not see the rest even if you move the screen. The game works fine on android and desktop. Here's the code I'm currently using...

		this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;		this.scale.minWidth = 320;		this.scale.minHeight = 480;		if(screen.width <= 641){			this.scale.maxWidth = 320;			this.scale.maxHeight = screen.height;					}else{			this.scale.maxWidth = 750;			this.scale.maxHeight = 600;		}		this.scale.pageAlignVertically = true;		this.scale.pageAlignHorizontally = true;		game.scale.refresh();

I added the if statement for mobile devices(devices with width under 641px). Any ideas?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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