sound volume!
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
(not (get-in entities [:state :blergh-dead?]))
|
||||
(actions/has-item? entities :magic-slingshot))
|
||||
((actions/get-script entities
|
||||
(sound! (sound "space/shock.ogg") :play)
|
||||
(sound! (sound "space/shock.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :bloodclot-head :shoot :stop? false)
|
||||
(actions/begin-animation entities :bloodclot-head :keep-shoot)
|
||||
(actions/do-dialogue entities :bloodclot-head "Dang! Come a little closer!"))
|
||||
@@ -56,7 +56,7 @@
|
||||
(begin [this screen entities]
|
||||
(particle-effect! (get-in entities [:room :entities :appear]) :reset)
|
||||
(particle-effect! (get-in entities [:room :entities :appear]) :start)
|
||||
(sound! (sound "inside-house/disappear.ogg") :play)
|
||||
(sound! (sound "inside-house/disappear.ogg") :play (utils/current-sound-volume))
|
||||
(-> entities
|
||||
(assoc-in [:tweens :bloodclot-head-appear]
|
||||
(tween/tween :bloodclot-head-appear screen [:room :entities :bloodclot-head :opacity] 1.0 0.0 1.0 :ease tween/ease-in-cubic))
|
||||
@@ -85,7 +85,7 @@
|
||||
(actions/run-action entities
|
||||
(begin [this screen entities]
|
||||
|
||||
(sound! (sound "space/jump.ogg") :play)
|
||||
(sound! (sound "space/jump.ogg") :play (utils/current-sound-volume))
|
||||
(-> entities
|
||||
(assoc-in [:room :entities :cloud] (assoc (texture "space/cloud.png")
|
||||
:x (- (get-in entities [:room :entities :ego :x]) 10)
|
||||
@@ -132,7 +132,7 @@
|
||||
(actions/run-action entities
|
||||
(begin [this screen entities]
|
||||
|
||||
(sound! (sound "space/swingsword.ogg") :play)
|
||||
(sound! (sound "space/swingsword.ogg") :play (utils/current-sound-volume))
|
||||
(-> entities
|
||||
(update-in [:room :entities :ego]
|
||||
#(actions/start-animation screen % :swing))
|
||||
@@ -232,7 +232,7 @@
|
||||
(actions/do-dialogue entities :bloodclot-head "Ha ha ha! Is that the best you can do?"
|
||||
:bloodclot-head "Take this!")
|
||||
|
||||
(sound! (sound "space/shock.ogg") :play)
|
||||
(sound! (sound "space/shock.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :bloodclot-head :shoot :stop? false)
|
||||
(actions/begin-animation entities :bloodclot-head :keep-shoot)
|
||||
(actions/play-animation entities :ego :shock :stop? false)
|
||||
|
||||
Reference in New Issue
Block a user