sound volume!
This commit is contained in:
@@ -268,7 +268,7 @@
|
||||
(if (get-in @entities [:room :entities :ladder])
|
||||
(do (actions/talk entities :ego "I think he's going for it!")
|
||||
(actions/play-animation entities :ego :cat-toy-first-half :stop? false)
|
||||
(sound! (sound "cat-tree/cat.ogg") :play)
|
||||
(sound! (sound "cat-tree/cat.ogg") :play (utils/current-sound-volume))
|
||||
(actions/walk-straight-to entities :cat [138 40] :update-baseline? false :speed 3)
|
||||
(actions/play-animation entities :ego :cat-toy-last-half)
|
||||
(actions/play-animation entities :grandma :squat-1 :stop? false)
|
||||
@@ -283,7 +283,7 @@
|
||||
:grandma "Come here young man.")
|
||||
(actions/walk-straight-to entities :ego [133 35])
|
||||
(actions/talk entities :grandma "For your impressive display of courage and bravery, I give you this. ")
|
||||
(sound! (sound "cat-tree/kiss.ogg") :play)
|
||||
(sound! (sound "cat-tree/kiss.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :grandma :kiss)
|
||||
(actions/play-animation entities :ego :get-sick :stop? false)
|
||||
(actions/walk-straight-to entities :ego [165 45])
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
(actions/talk entities :ego "I'll just try one of these mints.")
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/update-state entities (fn [s] (assoc s :mints-eaten (inc (s :mints-eaten)))))
|
||||
(sound! (sound (str "inside-antique/fire-" (get-in @entities [:state :mints-eaten]) ".ogg")) :play)
|
||||
(sound! (sound (str "inside-antique/fire-" (get-in @entities [:state :mints-eaten]) ".ogg")) :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :ego [:fire (get-in @entities [:state :mints-eaten])])
|
||||
(actions/talk entities :ego "WOWZA! Those are hot.")
|
||||
(when (= 3 (get-in @entities [:state :mints-eaten]))
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
(if (actions/has-item? @entities :flask-1-strength)
|
||||
(do
|
||||
(actions/do-dialogue entities :ego "One sec.")
|
||||
(sound! (sound "ego/potion.ogg") :play)
|
||||
(sound! (sound "ego/potion.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :ego :grow :stop? false)
|
||||
(play-battle entities :win)
|
||||
(actions/do-dialogue entities
|
||||
|
||||
@@ -29,7 +29,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] 0.0 1.0 1.0 :ease tween/ease-in-quadratic))
|
||||
@@ -101,7 +101,7 @@
|
||||
:game-player "I don't have the might or courage required to pull the sword and fulfill the prophecy. "
|
||||
:game-player "The knights of Remington have muscles the size of tree trunks."
|
||||
:game-player "But me...")
|
||||
(sound! (sound "inside-castle/flex.ogg") :play)
|
||||
(sound! (sound "inside-castle/flex.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :game-player :flex)
|
||||
(actions/do-dialogue entities :game-player "I'd never be able to prove my strength."))
|
||||
:choices actions/previous-choices}
|
||||
@@ -250,7 +250,7 @@
|
||||
:cursor :up
|
||||
:script (actions/get-script entities
|
||||
(actions/walk-to entities :ego [182 90] :face :left)
|
||||
(sound! (sound "door.ogg") :play)
|
||||
(sound! (sound "door.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(if (= :night (get-in @entities [:state :time]))
|
||||
(actions/talk entities :ego "It's locked.")
|
||||
@@ -443,12 +443,7 @@
|
||||
entities)
|
||||
(if (= :night (get-in entities [:state :time]))
|
||||
(make-night entities)
|
||||
entities)
|
||||
#_(let [chorus
|
||||
instance (sound! chorus :loop 0.0)]
|
||||
(-> entities
|
||||
(assoc-in [:room :chorus :sound] chorus)
|
||||
(assoc-in [:room :chorus :instance] instance)))))
|
||||
entities)))
|
||||
:update-fn (fn [screen entities]
|
||||
#_(when (and (actions/has-obtained? entities :sword)
|
||||
(get-in entities [:room :entities :magic])
|
||||
@@ -464,8 +459,8 @@
|
||||
(if (:instance chorus)
|
||||
(do (sound! (:sound chorus) :set-volume
|
||||
(:instance chorus)
|
||||
chorus-volume)
|
||||
(utils/current-sound-volume chorus-volume))
|
||||
entities)
|
||||
(assoc-in entities [:room :chorus :instance] (sound! (:sound chorus) :loop
|
||||
chorus-volume)))))))
|
||||
(utils/current-sound-volume chorus-volume))))))))
|
||||
:start-pos [245 90])))
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
:wizard "Ok, I'll deliver them myself. Don't touch anything while I'm gone.")
|
||||
(actions/update-state entities (fn [s] (assoc s :mints-eaten 0
|
||||
:wizard-left? true)))
|
||||
(sound! (sound "inside-house/disappear.ogg") :play)
|
||||
(sound! (sound "inside-house/disappear.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :wizard :disappear :stop? false)
|
||||
(actions/remove-entity entities :wizard))}
|
||||
"Nevermind."
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
entities
|
||||
(actions/walk-to entities :ego [267 90])
|
||||
(actions/talk entities :ego (str "Anyone home?"))
|
||||
(sound! (sound "door.ogg") :play)
|
||||
(sound! (sound "door.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(if (= :night (get-in @entities [:state :time]))
|
||||
(actions/talk entities :ego "It's locked.")
|
||||
|
||||
@@ -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