1- var TweenData = function ( value , ease , duration , yoyo , repeat , loop , delay , repeatDelay )
1+ var TweenData = function ( value , ease , duration , yoyo , repeat , delay , repeatDelay )
22{
33 return {
44
5- // A function to call when starting the tween, to populate the 'start' and 'end' values with
5+ // A function to call when starting the tween, populates the 'start' and 'end' values
66 value : value ,
77
88 // the ease function this tween uses
@@ -11,22 +11,19 @@ var TweenData = function (value, ease, duration, yoyo, repeat, loop, delay, repe
1111 // duration of the tween in ms/frames, excludes time for yoyo or repeats
1212 duration : duration ,
1313
14- // alternate the tween back to its start position again?
14+ // return the tween back to its start position again?
1515 yoyo : yoyo ,
1616
17- // number of times to repeat the tween (-1 = forever, same as setting loop=true)
17+ // number of times to repeat the tween
1818 repeat : repeat ,
1919
20- // infinitely loop this tween?
21- loop : loop ,
22-
23- // time in ms/frames between tween will start its first run
20+ // time in ms/frames before tween will start
2421 delay : delay ,
2522
2623 // time in ms/frames before repeat will start
2724 repeatDelay : repeatDelay ,
2825
29- // between 0 and 1 showing completion of current portion of tween
26+ // between 0 and 1 showing completion of this TweenData
3027 progress : 0 ,
3128
3229 // delta counter
@@ -38,9 +35,9 @@ var TweenData = function (value, ease, duration, yoyo, repeat, loop, delay, repe
3835 // how many repeats are left to run?
3936 repeatCounter : 0 ,
4037
41- // 0 = Waiting to be added to the TweenManager
42- // 1 = Paused (dev needs to invoke Tween.start)
43- // 2 = Started, but waiting for delay to expire
38+ // 0 = Waiting for Start
39+ // 1 = Waiting for countdown to expire
40+ // 2 = Started, waiting for next render to Load Values
4441 // 3 = Playing Forward
4542 // 4 = Playing Backwards
4643 // 5 = Completed
0 commit comments