Full screen

Learn how to switch to full-screen mode

More and more browsers support full-screen mode (however not all of them support it yet). Switching to full-screen mode is as simple as calling wade.setFullScreen(). However, this must be a user-initiated action, so it has to be called in an onMouseUp or an onClick function, otherwise the browser might decide to block it.
App = function() { this.init = function() { var textSprite = new TextSprite('Click to go full-screen', '32px Arial', 'blue', 'center'); var obj = new SceneObject(textSprite); wade.addSceneObject(obj); }; this.onClick = function() { wade.setFullScreen(); }; };
Your code was executed successfully!