totally reworking music transitions.

This commit is contained in:
2015-02-11 19:29:20 -08:00
parent b4c0fdcc6e
commit 5fbb4f1f31
5 changed files with 62 additions and 40 deletions

View File

@@ -16,11 +16,11 @@
:baseline 1000))
(defn play-battle [entities anim]
(actions/transition-music entities :town-1 :fight)
(actions/transition-music entities :fight)
(actions/add-entity entities :fight (get-in @entities [:room :fight]))
(actions/add-entity entities :hands-fight (get-in @entities [:room :hands-fight]))
(actions/play-animation entities :hands-fight anim)
(actions/transition-music entities :fight :town-1)
(actions/transition-music entities nil)
(actions/remove-entity entities :hands-fight)
(actions/remove-entity entities :fight))