Resizing the canvas after game has begun?

Monkey Targets Forums/HTML5/Resizing the canvas after game has begun?

Soap(Posted 2012) [#1]
I've created some Javascript which resizes my game's <canvas> window between 1024x768 and 800x600 for people with smaller screens, but I cannot seem to figure out what else I need to change to get the game to change its own resolution. The game is using diddy's virtual resolution. Changing game_canvas is not enough...

I can force the game to restart but that's not ideal.


bruZard(Posted 2012) [#2]
you can do that with my module "utils" > http://www.sedm.de/monkey/utils.zip



... or full screen with autoresize:



Soap(Posted 2012) [#3]
Here is what ended up working: