Class: SceneManager

SceneManager()

new SceneManager()

The static class that manages scene transitions.

Methods

(static) backgroundBitmap() → {Bitmap}

Returns:
Type
Bitmap

(static) catchException(e)

Parameters:
Name Type Description
e Event

(static) changeScene()

(static) checkFileAccess()

(static) checkPluginErrors()

(static) checkWebGL()

(static) clearStack()

(static) exit()

(static) goto(sceneClass)

Parameters:
Name Type Description
sceneClass Object

(static) initAudio()

(static) initGraphics()

(static) initialize()

(static) initInput()

(static) initNwjs()

(static) isCurrentSceneBusy() → {Boolean}

Returns:
Type
Boolean

(static) isCurrentSceneStarted() → {Boolean}

Returns:
Type
Boolean

(static) isNextScene(sceneClass) → {Boolean}

Parameters:
Name Type Description
sceneClass Scene_Base
Returns:
Type
Boolean

(static) isPreviousScene(sceneClass) → {Boolean}

Parameters:
Name Type Description
sceneClass Scene_Base
Returns:
Type
Boolean

(static) isSceneChanging() → {Boolean}

Returns:
Type
Boolean

(static) onError(e)

Parameters:
Name Type Description
e Event

(static) onKeyDown(event)

Parameters:
Name Type Description
event KeyboardEvent

(static) onSceneCreate()

(static) onSceneLoading()

(static) onSceneStart()

(static) pop()

(static) preferableRendererType() → {String}

Returns:
Type
String

(static) prepareNextScene()

(static) push(sceneClass)

Parameters:
Name Type Description
sceneClass Scene_Base

(static) renderScene()

(static) requestUpdate()

(static) resume()

(static) run(sceneClass)

Parameters:
Name Type Description
sceneClass Scene_Base

(static) setupErrorHandlers()

(static) shouldUseCanvasRenderer() → {Boolean}

Returns:
Type
Boolean

(static) snap() → {Bitmap}

Returns:
Type
Bitmap

(static) snapForBackground()

(static) stop()

(static) terminate()

(static) tickEnd()

(static) tickStart()

(static) update()

(static) updateInputData()

(static) updateMain()

(static) updateManagers()

(static) updateScene()