Interface SceneManagerOptions

For configuring the properties of Scene Manager

SceneManagerOptions

Example

 const options: SceneManagerOptions = {
initialScene: scene,
canvas: document.getElementById("canvas"),
width: 500,
height: 500
}
interface SceneManagerOptions {
    canvas: HTMLCanvasElement;
    height: number;
    initialScene?: Scene;
    start?: boolean;
    width: number;
}

Properties

canvas: HTMLCanvasElement

The canvas to render to

height: number

Height of canvas (this will overwrite the canvas height)

initialScene?: Scene

The scene to start with

start?: boolean

Whether or not to start drawing the scene when the SceneManager is created

width: number

Width of canvas (this will overwrite the canvas width)

Generated using TypeDoc