Richard Davey
|
3429946b13
|
Update TweenChainBuilder.js
|
2022-09-13 22:53:51 +01:00 |
|
Richard Davey
|
c05d8d6c6c
|
All method and property docs done. Fixed init, restart and others.
|
2022-09-13 22:53:45 +01:00 |
|
Richard Davey
|
b8a3cf9232
|
Extends BaseTween and start delay and lots of other fixes
|
2022-09-13 18:47:12 +01:00 |
|
Richard Davey
|
a2b349d745
|
Extends BaseTween
|
2022-09-13 18:46:57 +01:00 |
|
Richard Davey
|
c6250fe62c
|
Update TweenBuilderConfig.js
|
2022-09-13 18:46:46 +01:00 |
|
Richard Davey
|
20ff1c99ec
|
add can now take Tween instances and chain uses the new TweenChainBuilder
|
2022-09-13 18:46:41 +01:00 |
|
Richard Davey
|
de53735e93
|
Added START_DELAY const
|
2022-09-13 18:45:20 +01:00 |
|
Richard Davey
|
2c5cdf7023
|
Removed non-BaseTween methods
|
2022-09-13 18:45:11 +01:00 |
|
Richard Davey
|
8705f2a606
|
If you pass in a tween, return it. Also use merged defaults and base type
|
2022-09-13 18:44:56 +01:00 |
|
Richard Davey
|
1a509fbd98
|
Create TweenChainBuilder.js
|
2022-09-13 18:44:36 +01:00 |
|
Richard Davey
|
6c2fc3fcba
|
Working on BaseTween again so Chain can share the features
|
2022-09-13 13:16:31 +01:00 |
|
Richard Davey
|
96203aac19
|
Swap to use TweenChain
|
2022-09-12 18:50:01 +01:00 |
|
Richard Davey
|
bfce0c147b
|
Update Tween.js
|
2022-09-12 18:49:53 +01:00 |
|
Richard Davey
|
0f6977c03e
|
Update TweenChain.js
|
2022-09-12 18:49:49 +01:00 |
|
Richard Davey
|
672fe0c97f
|
Create TweenChain.js
|
2022-09-08 22:57:50 +01:00 |
|
Richard Davey
|
4e866b6046
|
onComplete can handle the pending state
|
2022-09-08 22:57:47 +01:00 |
|
Richard Davey
|
5a7949b391
|
Refactored updated to handle progress better
|
2022-09-08 18:54:19 +01:00 |
|
Richard Davey
|
3f89904040
|
Fixed a bug where setting repeat and hold would cause the Tween to include one final hold before marking itself as complete. It now completes as soon as the final repeat concludes, not after an addition hold.
|
2022-09-07 22:40:35 +01:00 |
|
Richard Davey
|
f3d798d4b4
|
Rename to avoid conflict with tween property of same name
|
2022-09-07 22:05:40 +01:00 |
|
Richard Davey
|
a2a492bb9f
|
Optimize the update flow with new countdown boolean
|
2022-09-07 18:49:28 +01:00 |
|
Richard Davey
|
fd17a6c569
|
Fixed state setter
|
2022-09-07 18:41:50 +01:00 |
|
Richard Davey
|
135c504035
|
Removed INIT as no longer used
|
2022-09-07 18:11:32 +01:00 |
|
Richard Davey
|
f3c53b4c55
|
Added all of the state methods and swapped to using them
Reduces code complexity, improves readability, reduces duplicated code
|
2022-09-07 18:11:24 +01:00 |
|
Richard Davey
|
3aaf9b1dbd
|
Reset the delta and elapsed for more accurate timing
|
2022-09-06 18:50:14 +01:00 |
|
Richard Davey
|
9fc45df7ac
|
Update Tween.js
|
2022-09-06 18:50:01 +01:00 |
|
Richard Davey
|
68c560064c
|
All of the 'Scope' tween configuration callback properties have been removed, including onActiveScope , onCompleteScope , onLoopScope , onPauseScope , onRepeatScope , onResumeScope , onStartScope , onStopScope , onUpdateScope and onYoyoScope . You should set the callbackScope property instead, which will globally set the scope for all callbacks. You can also set the Tween.callbackScope property.
|
2022-09-06 15:38:05 +01:00 |
|
Richard Davey
|
2f638d4abe
|
You can now specify a target property as 'random' to have the Tween pick a random float between the two given values. For example: alpha: 'random(0.25, 0.75)' . If you wish to only select a random integer, you can use 'int' instead: x: int(300, 600)' .
|
2022-09-06 15:34:02 +01:00 |
|
Richard Davey
|
ca571b2571
|
Update TweenData.js
|
2022-09-05 18:54:21 +01:00 |
|
Richard Davey
|
d058d216ed
|
Starting to refactor for new TweenData format
|
2022-09-02 18:56:40 +01:00 |
|
Richard Davey
|
e22009f585
|
Don't pass value if no interpolation func
|
2022-09-02 18:56:26 +01:00 |
|
Richard Davey
|
46739819db
|
Added jsdocs and returned TweenData
|
2022-09-02 18:56:04 +01:00 |
|
Richard Davey
|
e0202e6953
|
No need for ternary check
|
2022-09-02 18:55:53 +01:00 |
|
Richard Davey
|
02a6989ec7
|
Uses string based callback approach
|
2022-09-02 18:14:51 +01:00 |
|
Richard Davey
|
9da43d3af4
|
jsdoc updates and tidying up
|
2022-09-02 18:10:24 +01:00 |
|
Richard Davey
|
4eea1e75b3
|
Use GetValue for numeric-only properties
|
2022-09-02 18:10:08 +01:00 |
|
Richard Davey
|
072c709d04
|
Update GetNewValue.js
|
2022-09-02 18:09:52 +01:00 |
|
Richard Davey
|
2fc5c358f1
|
Finished jsdocs and tidied up some functions
|
2022-09-02 18:09:46 +01:00 |
|
Richard Davey
|
9cb86916ab
|
Added new typedefs for states and TweenData
|
2022-09-02 18:09:30 +01:00 |
|
Richard Davey
|
b60fa310be
|
Update Tween.js
|
2022-09-02 16:20:49 +01:00 |
|
Richard Davey
|
8b6bdba654
|
Just use targetIndex plus tidied up functions
|
2022-09-02 16:20:39 +01:00 |
|
Richard Davey
|
05659d2b6b
|
Refactored TweenData into a class to aid the VM in knowing its shape
|
2022-09-02 00:56:22 +01:00 |
|
Richard Davey
|
be6d69b574
|
Updated new timestep system, added full docs
|
2022-09-01 18:54:42 +01:00 |
|
Richard Davey
|
13e812bea0
|
Lots of tidying up and refactoring
|
2022-09-01 18:54:27 +01:00 |
|
Richard Davey
|
32bf211131
|
Removed unused const
|
2022-09-01 18:54:17 +01:00 |
|
Richard Davey
|
6aea1e7c94
|
Update TweenManager.js
|
2022-09-01 00:00:05 +01:00 |
|
Richard Davey
|
af18ffd564
|
Testing new timing system
|
2022-08-31 18:55:40 +01:00 |
|
Richard Davey
|
18e639a37a
|
Consolidated init, seek and calcDuration into a single method
|
2022-08-31 13:48:37 +01:00 |
|
Richard Davey
|
6e69ecdb0c
|
Corrected the jsdocs
|
2022-08-31 12:50:25 +01:00 |
|
Richard Davey
|
9eb364e3a2
|
Trying new flow
|
2022-08-30 23:45:19 +01:00 |
|
Richard Davey
|
b352deff83
|
create accepts an array as well
|
2022-08-30 22:06:48 +01:00 |
|