Interface that describes a custom camera strategy for tracking targets

Hierarchy

  • RadiusAroundActorStrategy

Implements

Constructors

Properties

Methods

Constructors

Properties

radius: number

Number of pixels away before the camera will follow

target: Actor

Target actor to follow when it is "radius" pixels away

Methods

  • Camera strategies perform an action to calculate a new focus returned out of the strategy

    Parameters

    • target: Actor

      The target object to apply this camera strategy (if any)

    • cam: Camera

      The current camera implementation in excalibur running the game

    • _eng: Engine

      The current engine running the game

    • _delta: number

      The elapsed time in milliseconds since the last frame

    Returns Vector