Skip to content

marble3 / disposeGame

Function: disposeGame() ​

disposeGame(root): void

Defined in: src/index.ts:28

Stops and tears down the game whose container is root, and any nested under it: the render loop, the renderer and, for an FPS, every entity and the physics world. Safe to call twice.

Parameters ​

root ​

HTMLElement

Returns ​

void