summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-09-21 20:11:14 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-09-21 20:34:43 -0400
commite4de04778ababee4a8d271e968bb4c763fc261c4 (patch)
tree52b318b6eb315d5c2a90340b5cb696b50f895132
parent83c8d25bc69186db996c255cffc5030c0e54eb97 (diff)
scripting: Use current-timestep as default step in tween procedure.
-rw-r--r--chickadee/scripting.scm3
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