Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Scene

A scene is a container for separating logically-different sections of your game - a title screen, a cutscene player, the actual game, credits screen and so on.

Hierarchy

  • Scene

Index

Methods

onEnded

  • onEnded(): void
  • Runs when another scene replaces this one in SceneManager.

    Returns void

onStarted

  • onStarted(): void
  • Runs when this scene is changed to in SceneManager.

    Returns void

update

  • update(passedTime: number): void
  • Called every frame.

    Parameters

    • passedTime: number

      The time that passed since the last frame in milliseconds

    Returns void

Generated using TypeDoc