Scene
Scene
Kind: global class
- Scene
- new Scene([name])
- .name :
string - .dataset :
EntityComponentDataset - .active :
ObservedBoolean - .destroyed :
boolean - .speedModifiers :
List.<LinearModifier> - .handlePreActivation()
- .handlePostActivation()
- .handlePreDeactivation()
- .handlePostDeactivation()
- .setup(options, engine, success, failure) ⇒
Task|TaskGroup
new Scene([name])
| Param | Type | Default |
|---|---|---|
| [name] | string | "Unnamed" |
scene.name : string
Kind: instance property of Scene
scene.dataset : EntityComponentDataset
Kind: instance property of Scene
scene.active : ObservedBoolean
Kind: instance property of Scene
Read only: true
scene.destroyed : boolean
Flag used to signal that the scene was been destroyed and should no longer be used
Kind: instance property of Scene
scene.speedModifiers : List.<LinearModifier>
Clock modifiers
Kind: instance property of Scene
scene.handlePreActivation()
Executed just before the scene is is activated
Kind: instance method of Scene
scene.handlePostActivation()
Executed just after scene is activate
Kind: instance method of Scene
scene.handlePreDeactivation()
Executed just before scene is deactivated
Kind: instance method of Scene
scene.handlePostDeactivation()
Executed just after scene is deactivated
Kind: instance method of Scene
scene.setup(options, engine, success, failure) ⇒ Task | TaskGroup
Kind: instance method of Scene
| Param | Type |
|---|---|
| options | |
| engine | Engine |
| success | function |
| failure | function |