From d7e53e33553d84921797b20bb8ffa8b7a6cdee72 Mon Sep 17 00:00:00 2001 From: Remington Covert Date: Sat, 21 Feb 2015 18:51:34 -0800 Subject: [PATCH] factors delta time in. --- desktop/src-common/advent/actions.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/src-common/advent/actions.clj b/desktop/src-common/advent/actions.clj index 52d71202..fbf3537c 100644 --- a/desktop/src-common/advent/actions.clj +++ b/desktop/src-common/advent/actions.clj @@ -283,6 +283,9 @@ delta-y (- target-y from-y) distance (utils/dist from-x from-y target-x target-y) speed (* (or scale-x 1.0) 1.5) + speed (* speed + (/ (:delta-time screen) + (/ 1.0 60.0))) moved-x (if (= 0.0 distance) 0 (* speed (/ delta-x distance)))