Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GameScreen

Mandatory interface for screens

Hierarchy

  • GameScreen

Index

Properties

Methods

Properties

Optional images

images: Array<string>

Images to preload

Optional sounds

sounds: Array<string>

Sounds to preload

Methods

init

  • init(core: Core): void
  • Initialises scene. This method is called each time the screen is activated

    Parameters

    • core: Core

      A reference to the active engine core

    Returns void

run

  • run(core: Core, deltaTime?: number): void
  • Main method. Called on each frame

    Parameters

    • core: Core

      A reference to the active engine core

    • Optional deltaTime: number

      Delai depuis le dernier appel

    Returns void

Generated using TypeDoc