danieldourado_2 Posted June 4, 2014 Share Posted June 4, 2014 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? Link to comment Share on other sites More sharing options...
Pedro Alpera Posted June 4, 2014 Share Posted June 4, 2014 Look the Project Templates: https://github.com/photonstorm/phaser/tree/master/resources/Project%20TemplatesI think "Full Screen Mobile" is the one you are looking for. Link to comment Share on other sites More sharing options...
Loopeex Posted June 5, 2014 Share Posted June 5, 2014 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. danieldourado_2 1 Link to comment Share on other sites More sharing options...
danieldourado_2 Posted June 5, 2014 Author Share Posted June 5, 2014 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 More sharing options...
Recommended Posts