Jump to content

Game to ocuppy all screen


danieldourado_2
 Share

Recommended Posts

I need this game  to ocuppy vertical screen area without losing its scale. When I try to scale the button hitbox gets screwed up (the game gets visually scaled to fi the screen, but the button hitbox don't follow the sprites).

The ideal situation would be the game to go fullScreen, but on my phone the button hitbox gets screwed up too.

What should I do?

Capturar.PNG

 

Capturar2.PNG

Link to comment
Share on other sites

If you want your game just to take the maximum height of the window, you will have to use Phaser maxWidth and maxHeight.

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.maxWidth = 640;this.scale.maxHeight = 960;this.scale.setScreenSize(true);

Be careful to give proportional width / height between min and max values.

Link to comment
Share on other sites

If you want your game just to take the maximum height of the window, you will have to use Phaser maxWidth and maxHeight.

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.maxWidth = 640;this.scale.maxHeight = 960;this.scale.setScreenSize(true);

Be careful to give proportional width / height between min and max values.

Thank you, Newbie. That is exacly what I wanted.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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