WWPOL / Earth-Invader

WWPOL entry for JS13K. Play it here >>>
http://wwpol.github.io/Earth-Invader
1 stars 1 forks source link

Apparently currentcanvas wont be recognized as a canvas #2

Closed ROODAY closed 10 years ago

ROODAY commented 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.

ROODAY commented 10 years ago

Changed resize function to instead re-init canvas instead of changing size, as the latter could leave an ugly hud