Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TweenManager

Index

Properties

Methods

Properties

Private tweens

tweens: { name: string; tween: Tween }[] = []

Methods

addTween

  • addTween(object: any, name: string): Tween
  • Adds a new Tween to the TweenManager and returns the Tween object.

    Parameters

    • object: any

      The effected object of this tween

    • name: string

      The name for this Tween, to get is later back from TweenManager

    Returns Tween

getTween

  • getTween(name: string): Tween
  • Returns the Tween with the given name. Expects a previous call of addTween(name)

    Parameters

    • name: string

      the name for the wanted Tween

    Returns Tween

update

  • update(deltaTime: number): void
  • Updates all Tweens

    Parameters

    • deltaTime: number

      expects the passed time since the last call in milliseconds

    Returns void

Generated using TypeDoc