refactored sounds so they're never dynamically loaded.

This commit is contained in:
Bryce Covert
2015-10-29 20:04:08 -07:00
parent 78a4ddfce6
commit 614156245a
11 changed files with 57 additions and 33 deletions

View File

@@ -540,8 +540,7 @@
(defn give [entities item]
(run-action entities
(begin [this screen entities]
(sound! (utils/load-sound "pickup.ogg") :play (utils/current-sound-volume 0.3))
(utils/play-sound! screen entities :pickup (constantly 0.3))
(-> entities
(update-in [:state :inventory] #(conj % item))
(update-in [:state :obtained-items] #(conj % item))