Sorted out the animation vs. easing contradiction I believe. Now there's a separate easing_duration that's calculated from the total duration of all frames. Then a easing_position determines where in the total the animation is, which is fed to the asing functions as a ration of easing_position / easing_duration.
This commit is contained in:
parent
0c798c9e0d
commit
1baca783fc
9 changed files with 47 additions and 75 deletions
|
|
@ -6,11 +6,11 @@
|
|||
"frame_height": 768
|
||||
},
|
||||
"sequences": {
|
||||
"idle": {"frames": [0], "durations": [800] },
|
||||
"pan": {"frames": [0], "durations": [800] },
|
||||
"shake": {"frames": [0], "durations": [800] },
|
||||
"dolly": {"frames": [0], "durations": [800] },
|
||||
"bounce": {"frames": [0], "durations": [800] }
|
||||
"idle": {"frames": [0], "durations": [60] },
|
||||
"pan": {"frames": [0], "durations": [60] },
|
||||
"shake": {"frames": [0], "durations": [60] },
|
||||
"dolly": {"frames": [0], "durations": [60] },
|
||||
"bounce": {"frames": [0], "durations": [60] }
|
||||
},
|
||||
"transforms": {
|
||||
"pan": {
|
||||
|
|
@ -19,7 +19,6 @@
|
|||
"max_x": 0.0,
|
||||
"max_y": 0.0,
|
||||
"flipped": false,
|
||||
"ease_rate": 5.0,
|
||||
"scaled": false,
|
||||
"toggled": false,
|
||||
"looped": true,
|
||||
|
|
@ -33,7 +32,6 @@
|
|||
"max_x": 10.0,
|
||||
"max_y": 10.0,
|
||||
"flipped": false,
|
||||
"ease_rate": 5.0,
|
||||
"scaled": false,
|
||||
"toggled": false,
|
||||
"looped": true,
|
||||
|
|
@ -47,7 +45,6 @@
|
|||
"max_x": 1.0,
|
||||
"max_y": 1.0,
|
||||
"flipped": false,
|
||||
"ease_rate": 3.0,
|
||||
"scaled": false,
|
||||
"toggled": false,
|
||||
"looped": true,
|
||||
|
|
@ -61,7 +58,6 @@
|
|||
"max_x": 0,
|
||||
"max_y": 0,
|
||||
"flipped": false,
|
||||
"ease_rate": 3.0,
|
||||
"scaled": false,
|
||||
"toggled": false,
|
||||
"looped": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue