better fire animation (and sound)
This commit is contained in:
@@ -156,6 +156,7 @@
|
||||
(actions/talk entities :ego "All of these trinkets seem too bulky to fit in my pack."))}
|
||||
:flowers {:box [171 125 181 155]
|
||||
:script (actions/get-script entities
|
||||
(actions/update-state entities (fn [s] (assoc s :mints-eaten 0)))
|
||||
(actions/talk entities :ego "I've never been a fan of flowers."))}
|
||||
:lian {:box [272 100 313 160]
|
||||
:script (actions/get-script entities
|
||||
@@ -196,6 +197,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)
|
||||
(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]))
|
||||
|
||||
Reference in New Issue
Block a user