davidv8 Posted April 8, 2014 Share Posted April 8, 2014 how to scale game to fit browser window in Phaser 2.x ? Link to comment Share on other sites More sharing options...
Videlais Posted April 8, 2014 Share Posted April 8, 2014 Have you looked at ScaleManager? It is accessed through the game's scale object. This thread also covers different ways people are using it.game.stage.scaleMode = Phaser.StageScaleMode.SHOW_ALL;game.stage.scale.setShowAll();game.stage.scale.refresh();There is also an alternative, although not recommended, way of using CSS to force the browser to use its full, available dimensions.canvas { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;} Link to comment Share on other sites More sharing options...
davidv8 Posted April 9, 2014 Author Share Posted April 9, 2014 thank you.. i will try it out Link to comment Share on other sites More sharing options...
prateek.pradeep Posted April 9, 2014 Share Posted April 9, 2014 thank you.. i will try it out did you try it out and have had any success??let me know i am also looking for similar thing. View my similar post on this..http://www.html5gamedevs.com/topic/5519-any-tutorial-on-scaling-on-different-resolution-orientationetc/ Link to comment Share on other sites More sharing options...
davidv8 Posted April 13, 2014 Author Share Posted April 13, 2014 did you try it out and have had any success??let me know i am also looking for similar thing. View my similar post on this..http://www.html5gamedevs.com/topic/5519-any-tutorial-on-scaling-on-different-resolution-orientationetc/ in resource folder, there is a full screen example for mobile. i copy the code and it works. Link to comment Share on other sites More sharing options...
Recommended Posts