Skip to content
On this page

kagurajs - v0.2.7 / Exports / Scene

Class: Scene

Scene class

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Scene(sceneConstructorOptions)

Parameters

NameType
sceneConstructorOptionsSceneConstructorOptions

Defined in

src/scene/index.ts:18

Properties

#pixiContainer

Private #pixiContainer: Container<DisplayObject>

Defined in

src/scene/index.ts:17


kaguraApp

kaguraApp: Kagura

Defined in

src/scene/index.ts:16

Methods

addChild

addChild(object): void

Child appends this scene.

Parameters

NameTypeDescription
objectObjectContainerObjectContainer Object.

Returns

void

Defined in

src/scene/index.ts:49


cleanScene

cleanScene(): void

Crean this Scene.

Returns

void

Defined in

src/scene/index.ts:60


frame

frame(): void | Promise<void>

Returns

void | Promise<void>

Defined in

src/scene/index.ts:37


init

init(): void | Promise<void>

Returns

void | Promise<void>

Defined in

src/scene/index.ts:33


nextScene

nextScene(NewScene): Promise<void>

Parameters

NameType
NewScenetypeof Scene

Returns

Promise<void>

Defined in

src/scene/index.ts:53


steps

steps(): Generator<unknown, any, unknown>

Returns

Generator<unknown, any, unknown>

Defined in

src/scene/index.ts:41