API Docs for: 1.0.0
Show:

Kiwi.Animations.Tweens.TweenManager Class

Module: Tweens
Parent Module: Animations

The TweenManager is automatically created on every game. This class is responsible for the creation and management of tweens for the game.

Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi. https://github.com/sole/tween.js

Constructor

Kiwi.Animations.Tweens.TweenManager

(
  • game
)
Kiwi.Animations.TweenManager

Parameters:

Returns:

Kiwi.Animations.TweenManager:

Item Index

Properties

Methods

add

(
  • tween
)
Kiwi.Animations.Tween public

Adds a tween to the manager.

Parameters:

create

(
  • object
)
Kiwi.Animations.Tween public

Creates a new Tween.

Parameters:

  • object Any

    The object that this tween is to apply.

Returns:

Kiwi.Animations.Tween:

The tween that was created.

getAll

() public

Returns all of tweens that are on the manager.

Returns:

Kiwi.Animations.Tween[]

objType

() String public

The type of object that this is.

Returns:

String:

remove

(
  • tween
)
Kiwi.Animations.Tween public

Removes a tween from this manager.

Parameters:

removeAll

() public

Removes all of the tweens on the manager.

update

() public

The update loop.

Properties

_game

Kiwi.Game private

The game that this manager belongs to.

_tweens

Kiwi.Animations.Tween[] private

An array of all of the tweens on the manager.