Class HUD

Constructors

Properties

canvas: HTMLCanvasElement
debug: boolean = false
debugDiv: HTMLDivElement
hud: HTMLDivElement
loadingDiv: HTMLDivElement

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

  • Update the HUD position and size to match the canvas

    Returns void

Generated using TypeDoc