The canvas element that the game will draw into
Readonly hasGets the current state of pointerLock.
Readonly isWhether the game is focused.
Readonly pointerWhether the user's pointer is within the game area.
Readonly supportsWhether the browser supports pointerLock.
Rest ...args: any[]Generated using TypeDoc
noa.container- manages the game's HTML container element, canvas, fullscreen, pointerLock, and so on.This module wraps
micro-game-shell, which does most of the implementation.Events
DOMready => ()Relays the browser DOMready event, after noa does some initialization
gainedPointerLock => ()Fires when the game container gains pointerlock.
lostPointerLock => ()Fires when the game container loses pointerlock.