fixed background up.

This commit is contained in:
Bryce Covert
2017-01-10 09:14:58 -08:00
parent 8aec881ea6
commit 4e76ce6cf8
15 changed files with 1060 additions and 1038 deletions

View File

@@ -1317,7 +1317,13 @@ void main ()
(= (key-code :m) (:key options)))
(-> entities
(remove-cam-tweens)
(assoc-in [:cam :zoom] utils/max-zoom #_(max utils/max-zoom (min utils/min-zoom (* (or start-zoom zoom) (/ initial-distance distance))))))
(assoc-in [:tweens :cam-zoom]
(tween/tween :cam-zoom screen
[:cam :zoom]
(get-in entities [:cam :zoom] 1.0)
utils/max-zoom
1.5
:ease tween/ease-linear)))
:else
nil))