a lot of stuff to get rid of reflection.
This commit is contained in:
@@ -550,10 +550,10 @@
|
||||
(/ (:delta-time screen)
|
||||
(/ 1.0 60.0)))
|
||||
speed (if (< delta-x 0) (- speed) speed)
|
||||
moved-x (if (< (Math/abs delta-x) speed)
|
||||
moved-x (if (< (Math/abs (int delta-x)) speed)
|
||||
target-x
|
||||
(* speed (/ delta-x delta-x) ))]
|
||||
(if (< (Math/abs delta-x) speed)
|
||||
(if (< (Math/abs (int delta-x)) speed)
|
||||
(actions/start-animation screen
|
||||
(dissoc e :target-x)
|
||||
:stand)
|
||||
@@ -820,7 +820,7 @@
|
||||
(let [speed 0.009
|
||||
pos-f (- (* (:total-time screen) speed) (int (* (:total-time screen) speed)))
|
||||
v (vector-2 0 0)
|
||||
a (catmull-rom-spline! (:path entity) :value-at v pos-f)]
|
||||
a (catmull-rom-spline! ^CatmullRomSpline (:path entity) :value-at v pos-f)]
|
||||
(assoc entity :x (vector-2! v :x) :y (vector-2! v :y)))))}
|
||||
:cauldron (rooms/make-entity :cauldron (assoc (animation->texture screen cauldron)
|
||||
:x 139 :y 73 :baseline 167
|
||||
|
||||
Reference in New Issue
Block a user