diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-09-21 20:11:14 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-09-21 20:34:43 -0400 |
commit | e4de04778ababee4a8d271e968bb4c763fc261c4 (patch) | |
tree | 52b318b6eb315d5c2a90340b5cb696b50f895132 | |
parent | 83c8d25bc69186db996c255cffc5030c0e54eb97 (diff) |
scripting: Use current-timestep as default step in tween procedure.
-rw-r--r-- | chickadee/scripting.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chickadee/scripting.scm b/chickadee/scripting.scm index f8c859d..1820348 100644 --- a/chickadee/scripting.scm +++ b/chickadee/scripting.scm @@ -16,6 +16,7 @@ ;;; <http://www.gnu.org/licenses/>. (define-module (chickadee scripting) + #:use-module (chickadee game-loop) #:use-module (chickadee math) #:use-module (chickadee math easings) #:use-module (chickadee scripting agenda) @@ -72,7 +73,7 @@ cont))))))) (define* (tween duration start end proc #:key - (step 1) + (step (current-timestep)) (ease smoothstep) (interpolate lerp)) "Transition a value from START to END over DURATION, sending each |