From e4de04778ababee4a8d271e968bb4c763fc261c4 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 21 Sep 2021 20:11:14 -0400 Subject: scripting: Use current-timestep as default step in tween procedure. --- chickadee/scripting.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ ;;; . (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 -- cgit v1.2.3