Le Twitch Posted June 19, 2014 Share Posted June 19, 2014 i need some help understanding as to what ScaleManager and setScreenSize(true); do.this.game.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.game.scale.setScreenSize(true); Link to comment Share on other sites More sharing options...
lewster32 Posted June 19, 2014 Share Posted June 19, 2014 The first line makes the game canvas scale up uniformly to fill as much of the container as it can. It will never causes the game to become 'stretched' in one direction or another, nor will it ever crop parts out. The second line simply tries to set the canvas to the size of the screen. Le Twitch 1 Link to comment Share on other sites More sharing options...
Le Twitch Posted June 19, 2014 Author Share Posted June 19, 2014 The first line makes the game canvas scale up uniformly to fill as much of the container as it can. It will never causes the game to become 'stretched' in one direction or another, nor will it ever crop parts out. The second line simply tries to set the canvas to the size of the screen. does this mean that you don't need both of those lines if the size of the game is the same size as the screen? Link to comment Share on other sites More sharing options...
lewster32 Posted June 19, 2014 Share Posted June 19, 2014 Yeah if you've already resized the game manually leave out the second line. Link to comment Share on other sites More sharing options...
Recommended Posts