Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Interactive

define the Interactive object features

Hierarchy

Index

Properties

action

action: null | "pressed" | "released"

enabled

enabled: boolean

enabled is a Boolean which, if false, deactivates the button.

hoverOver

hoverOver: boolean

hoverOver is a Boolean which checkes whether the pointer has hovered over the button.

pressed

pressed: boolean

pressed is a Boolean that helps track whether or not the button has been pressed down.

state

state: null | "over" | "up" | "down"

The state property tells you button's current state. Set its initial state to "up".

Methods

Optional out

  • out(): void
  • Custom out handler.

    Returns void

Optional over

  • over(): void
  • Custom over handler.

    Returns void

Optional press

  • press(): void
  • Custom press handler

    Returns void

Optional release

  • release(): void
  • Custom release handler.

    Returns void

Optional tap

  • tap(): void
  • Custom tap handler.

    Returns void

Optional update

  • update(pointer: Pointer, canvas: HTMLCanvasElement): void
  • The update method will be called each frame inside Ga's game loop.

    Parameters

    • pointer: Pointer
    • canvas: HTMLCanvasElement

    Returns void

Generated using TypeDoc