cloud sound.

This commit is contained in:
Bryce Covert
2015-11-24 23:27:35 -08:00
parent c9ee4b8f70
commit ebe5bcbe44
6 changed files with 11 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
18
19

Binary file not shown.

View File

@@ -445,6 +445,7 @@
:none)))
(defn do-win [entities]
(actions/do-dialogue entities
:ego "Hey, Bloodclot!"
:ego "I have this potion which will make me as strong as you!"
@@ -468,6 +469,7 @@
(actions/do-dialogue entities
:ego "Hey!"
:ego "I won!")
(steam/set-achievement "BLOODCLOT")
(actions/glad entities)
(actions/walk-straight-to entities :ego [340 55])

View File

@@ -46,12 +46,19 @@
frankie-down (utils/make-anim-seq "ending-castle/frankie-fall" [40 35] 0.1 [0])
scaler (utils/scaler-fn-with-baseline 20 1.3 1.30)]
(rooms/make :music :dream
:sounds {:cloud (utils/load-sound "ending-castle/cloud.ogg")}
:name "Ending"
:interactions {}
:layers [(assoc (utils/get-texture "ending-castle/ending-castle2-assets/background.png") :x 0 :y 0 :origin-x 0 :origin-y 0 :baseline 0)
(assoc (utils/get-texture "ending-castle/ending-castle2-assets/foreground.png") :x 160 :y 0 :origin-x 165 :origin-y 5 :baseline 240 :parallax 1.4)]
:apply-state (fn [screen e]
(update-in e [:room :entities :ego] dissoc :talk-override ))
(as-> e e
(utils/play-sound! screen e :cloud (fn [e]
(* 0.5 (/ (- 400 (get-in e [:room :entities :gandarf :y]))
300)))
0.5 :loop )
(update-in e [:room :entities :ego] dissoc :talk-override )))
:georgia (rooms/make-entity :georgia (assoc (animation->texture screen georgia-stand)
:x 111 :y 22 :baseline 218
:scale-x 1.3