refactored sounds so they're never dynamically loaded.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user