Giraffewithsocks Posted July 12, 2014 Share Posted July 12, 2014 Greetings! I'm starting out using phaser for the the first time, but hit a problem blocking most of my further development.I am aiming to create a simple level editor in html5 and have successfully embedded phaser on in its own <div> on my page. When i resize the div, i would like the phaser screen to resize as well, but not scale the content just releaving more of it. I have tried initializing the game at 800x600 and setting the camera size like sogame.camera.setSize(400,600);Hoping that half of my screen would be cut of,but this did not seem to have any effect as I was left with the exact same result as without the code line. How could i achieve this functionallity with phaser?The closest i have come to something similar is mattguests example in this post.http://www.html5gamedevs.com/topic/1638-changing-game-size-to-fit-page/#entry41290 But it seems to have problems with the movement of the camera and the bounds once you resize beyond the initial size. Anyone care to point me in the correct direction? Link to comment Share on other sites More sharing options...
Recommended Posts