Class SceneBase<TBody>

Type Parameters

  • TBody extends Body = Body

Hierarchy (view full)

Constructors

Properties

animationFrame: number = 0

requestAnimationFrame reference.

children: LifecycleProps[] = []

Each GameObject has children Lifecycle Objects.

children$: Subject<void> = ...

When Scene Object has children amount changed, it emits this subject.

destroy$: Subject<void> = ...

When Lifecycle Object is destroyed, it emits and closes this subject. Along with destroying his children, which in turn behave the same.

label: string

Each Lifecycle Object has label for pixi debugging.

lastUpdate: number

Scene has last update unix time stored.

options: SceneOptions

Options are assigned at creation.

physics: System<TBody>

Reference to Collision Detection System.

scene?: SceneBase<Body> | Scene<Body>

Lifecycle Object may be added to a Scene Object.

stage: Container<ContainerChild>

Top Level Container.

update$: Subject<number> = ...

When Lifecycle Object is updated, it emits this subject. Along with updating his children, which in turn behave the same.

x: number

position x

y: number

position y

Methods

  • Parameters

    • Optional _options: Record<string, any>

    Returns Promise<void>