added drop sound.
This commit is contained in:
@@ -398,6 +398,10 @@
|
||||
(actions/do-dialogue entities :ego "Yes! Now, before he gets back!")
|
||||
(actions/pause-camera entities)
|
||||
(actions/walk-straight-to entities :ego [173 51] :anim :jump :update-baseline? false :speed 2.0)
|
||||
(actions/play-sound entities
|
||||
(get-in @entities [:room :entities :ego :drop-sound])
|
||||
0.2
|
||||
false)
|
||||
(actions/walk-straight-to entities :ego [200 -80] :anim :stand :update-baseline? false :speed 3.0)
|
||||
(actions/remove-item entities :dream-sword)
|
||||
(actions/remove-item entities :broom)
|
||||
|
||||
@@ -251,9 +251,14 @@
|
||||
:ball-n-chain (actions/get-script entities (if (get-in @entities [:state :bent-bars?])
|
||||
(do (actions/walk-to entities :ego [102 88] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/play-sound entities
|
||||
(get-in @entities [:room :entities :ego :drop-sound])
|
||||
0.2)
|
||||
(actions/update-state entities #(assoc % :dropped-ball? true))
|
||||
(actions/do-dialogue entities :ego "Geronimo!!"
|
||||
:ego "*crash*!")
|
||||
(actions/do-dialogue entities :ego "Geronimo!!")
|
||||
(actions/play-sound entities
|
||||
(get-in @entities [:room :entities :ego :breakglass-sound])
|
||||
0.2)
|
||||
(Thread/sleep 200)
|
||||
(actions/begin-animation entities :warden :stand)
|
||||
(Thread/sleep 300)
|
||||
|
||||
@@ -629,6 +629,7 @@ void main()
|
||||
:origin-x 9
|
||||
:origin-y 0
|
||||
:scaled true
|
||||
:drop-sound (utils/load-sound "ego/drop.ogg")
|
||||
:milk-sound (utils/load-sound "outsidehouse/milk.ogg")
|
||||
:step-sound-1 (utils/load-sound "ego/step-1.ogg")
|
||||
:step-sound-2 (utils/load-sound "ego/step-2.ogg")
|
||||
|
||||
Reference in New Issue
Block a user