Closed ROODAY closed 10 years ago
Theres a nice a global variable to keep track of the current canvas called currentcanvas. I set it to the canvas whenever a new canvas is initialized. However, on window resize, even though the current canvas should be set, it appears as undefined.
Changed resize function to instead re-init canvas instead of changing size, as the latter could leave an ugly hud
Theres a nice a global variable to keep track of the current canvas called currentcanvas. I set it to the canvas whenever a new canvas is initialized. However, on window resize, even though the current canvas should be set, it appears as undefined.