Ivasik Posted February 15, 2016 Share Posted February 15, 2016 Hello, i'm doing my game in html5 using the phaser framework аnd faced with the problem. To make the game fit the whole browser, not the half of it. How to make Auto-Resizing HTML5 games with the use phaser. Thanks! Link to comment Share on other sites More sharing options...
rgk Posted February 16, 2016 Share Posted February 16, 2016 Set the width of the canvas element to 100%? This is also another option: https://github.com/photonstorm/phaser/tree/master/resources/Project%20Templates/Responsive Ivasik 1 Link to comment Share on other sites More sharing options...
Ivasik Posted February 16, 2016 Author Share Posted February 16, 2016 3 hours ago, rgk said: Set the width of the canvas element to 100%? This is also another option: https://github.com/photonstorm/phaser/tree/master/resources/Project%20Templates/Responsive Thanks for the reply! Let's try:) Link to comment Share on other sites More sharing options...
Ivasik Posted February 16, 2016 Author Share Posted February 16, 2016 5 hours ago, rgk said: Set the width of the canvas element to 100%? This is also another option: https://github.com/photonstorm/phaser/tree/master/resources/Project%20Templates/Responsive Talk to you again, so as not to create a separate subject. How can I make the tabs, as is done in bootstrap and generally in js. Without html, just js+phaser, if you can:) Link to comment Share on other sites More sharing options...
Recommended Posts