API Docs for: 1.13.1
Show:

game.Tween Class

Extends game.Class
Defined in: engine/tween.js:75
Module: tween

Constructor

game.Tween

(
  • object
)

Defined in engine/tween.js:75

Parameters:

  • object Object

Methods

chain

(
  • tween
)

Defined in engine/tween.js:258

Parameters:

delay

(
  • time
  • repeat
)

Defined in engine/tween.js:203

Parameters:

  • time Number
  • repeat Boolean

easing

(
  • easing
)

Defined in engine/tween.js:234

Parameters:

  • easing Function

extend

(
  • prop
)
game.Class

Inherited from game.Class: engine/core.js:757

Extend class.

Parameters:

  • prop Object

Returns:

init

(
  • arguments
)

Inherited from game.Class: engine/core.js:811

This method is called, when you create new instance of the class.

Parameters:

  • arguments Array

inject

(
  • prop
)

Inherited from game.Class: engine/core.js:825

Inject class.

Parameters:

  • prop Object

interpolation

(
  • interpolation
)

Defined in engine/tween.js:249

Parameters:

  • interpolation Function

onComplete

(
  • callback
)

Defined in engine/tween.js:285

Parameters:

  • callback Function

onRepeat

(
  • callback
)

Defined in engine/tween.js:294

Parameters:

  • callback Function

onStart

(
  • callback
)

Defined in engine/tween.js:267

Parameters:

  • callback Function

onUpdate

(
  • callback
)

Defined in engine/tween.js:276

Parameters:

  • callback Function

pause

()

Defined in engine/tween.js:180

repeat

(
  • times
)

Defined in engine/tween.js:214

Parameters:

  • times Number

resume

()

Defined in engine/tween.js:187

start

()

Defined in engine/tween.js:139

staticInit

(
  • arguments
)

Inherited from game.Class: engine/core.js:795

This method is called before init.

Parameters:

  • arguments Array

stop

()

Defined in engine/tween.js:167

stopChainedTweens

()

Defined in engine/tween.js:194

to

(
  • properties
  • duration
)

Defined in engine/tween.js:128

Parameters:

  • properties Object
  • duration Number

yoyo

(
  • enabled
)

Defined in engine/tween.js:224

Parameters:

  • enabled Boolean

Properties

paused

Boolean

Defined in engine/tween.js:87

Is tween paused.

playing

Boolean

Defined in engine/tween.js:82

Is tween playing.

Attributes

Easing

Object

Defined in engine/tween.js:383

Interpolation

Object

Defined in engine/tween.js:586