SondreB Posted February 15, 2015 Share Posted February 15, 2015 I'm wondering if it's possible to create a game board with Phaser that stretches with the browser window, but keeps the scale (zoom) at the same for graphics? I'm working on a top-down game, where a user with higher resolutions should see more of the world, as oppose to seeing a zoomed (scaled) view. Only looked at Phaser for two days, but not been able to create this behavior. Any examples or suggestions? Link to comment Share on other sites More sharing options...
rich Posted February 15, 2015 Share Posted February 15, 2015 Yes use the RESIZE Scale Mode and give the game dimensions of "100%" (rather than a fixed pixel value). Then you'll get a canvas at whatever size 100% equates to in your page layout. So the bigger the browser window, the bigger the canvas will be. Triplanetary 1 Link to comment Share on other sites More sharing options...
Recommended Posts