A type of ping that points to a specific location.

Param: origin

The canvas coordinates of the origin of the ping.

Param: options

Additional options to configure the ping animation.

Hierarchy (view full)

Properties

_CHEVRON_PATH: string = "icons/pings/chevron.webp"

The path to the chevron texture.

Methods

  • Start the ping animation.

    Returns Promise<boolean>

    Returns true if the animation ran to completion, false otherwise.

  • On each tick, advance the animation.

    Parameters

    • dt: any

      The number of ms that elapsed since the previous frame.

    • animation: any

      The animation state.

    Returns void

  • Parameters

    • options: {} = {}

      Returns void

      Inherit Doc

    • Private

      Draw the outer and inner rings.

      Parameters

      • a: number

        The alpha.

      Returns void

    • Private

      Load the chevron texture.

      Returns Promise<Sprite>

    • Private

      Draw the two rings that are used as part of the ping animation.

      Returns Graphics[]