credits update.

This commit is contained in:
Bryce Covert
2016-04-20 21:48:19 -07:00
parent f723a484e6
commit 8854d740c7
4 changed files with 161 additions and 51 deletions

View File

@@ -569,7 +569,10 @@
(actions/play-animation entities :ego :hand-hold :stop? false)
(Thread/sleep 500)
(fade-out entities)
(on-gl (reset! @(resolve 'advent.screens.credits/saved-took?) (get-in @entities [:state :has-voted?]))
(on-gl (reset! @(resolve 'advent.screens.credits/saved-took?)
(if (get-in @entities [:state :has-voted?])
:saved
:died))
(set-screen! @(resolve 'advent.core/advent) @(resolve 'advent.screens.credits/credits))))
(defn win []