added drop sound.

This commit is contained in:
Bryce Covert
2015-10-10 13:24:45 -07:00
parent e830e62421
commit 7c85e01e9b
5 changed files with 23 additions and 10 deletions

View File

@@ -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)