kagurajs - v0.2.7 / Exports / Scene
Class: Scene
Scene class
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Scene(sceneConstructorOptions
)
Parameters
Name | Type |
---|---|
sceneConstructorOptions | SceneConstructorOptions |
Defined in
Properties
#pixiContainer
• Private
#pixiContainer: Container
<DisplayObject
>
Defined in
kaguraApp
• kaguraApp: Kagura
Defined in
Methods
addChild
▸ addChild(object
): void
Child appends this scene.
Parameters
Name | Type | Description |
---|---|---|
object | ObjectContainer | ObjectContainer Object. |
Returns
void
Defined in
cleanScene
▸ cleanScene(): void
Crean this Scene.
Returns
void
Defined in
frame
▸ frame(): void
| Promise
<void
>
Returns
void
| Promise
<void
>
Defined in
init
▸ init(): void
| Promise
<void
>
Returns
void
| Promise
<void
>
Defined in
nextScene
▸ nextScene(NewScene
): Promise
<void
>
Parameters
Name | Type |
---|---|
NewScene | typeof Scene |
Returns
Promise
<void
>
Defined in
steps
▸ steps(): Generator
<unknown
, any
, unknown
>
Returns
Generator
<unknown
, any
, unknown
>