Class HUD

Constructors

Properties

Methods

Constructors

  • Parameters

    • canvas: HTMLCanvasElement

    Returns HUD

Properties

debug: boolean = false

Methods

  • Add a HTML element to the HUD

    Parameters

    • item: HTMLElement

      HTML element to add

    Returns void

  • Hide the loading message, this is called by the engine

    Returns void

  • Render the HUD, called once per frame

    Parameters

    • debug: boolean = false
    • camera: Camera

    Returns void