Added window treatment.
This commit is contained in:
@@ -55,11 +55,26 @@
|
||||
:script (actions/get-script
|
||||
entities
|
||||
(actions/walk-to entities :ego [128 100] :face :left)
|
||||
(if (= :night (get-in @entities [:state :time]))
|
||||
(actions/do-dialogue entities :ego "The house is dark and empty.")
|
||||
(actions/do-dialogue entities
|
||||
:ego "I can see Gandarf moving around in the corner of the room."
|
||||
:ego "It's hard to make out from this angle.")))}}
|
||||
(cond
|
||||
(= :night (get-in @entities [:state :time]))
|
||||
(actions/do-dialogue entities :ego "The house is dark and empty.")
|
||||
|
||||
(actions/has-obtained? entities :tune)
|
||||
(actions/do-dialogue entities
|
||||
:ego "Gandarf's just working on one of his spells.")
|
||||
|
||||
(get-in @entities [:state :peeked-in-window?])
|
||||
(actions/do-dialogue entities
|
||||
:ego "Gandarf is moving around in the corner of the room."
|
||||
:ego "I think he's opening his MagiSafe!"
|
||||
:ego "I'll need a better spying angle if I hope to crack the safe.")
|
||||
|
||||
:else
|
||||
(do
|
||||
(actions/do-dialogue entities
|
||||
:ego "I can see Gandarf moving around in the corner of the room."
|
||||
:ego "It's hard to make out from this angle.")
|
||||
(actions/update-state entities #(assoc % :peeked-in-window? true)))))}}
|
||||
:layers {:day [(assoc (utils/get-texture "behindhouse/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (utils/get-texture "behindhouse/house.png") :x 0 :y 0 :baseline 122)
|
||||
(assoc (utils/get-texture "behindhouse/brush.png") :x 0 :y 0 :baseline 240)
|
||||
|
||||
@@ -336,7 +336,7 @@ void main ()
|
||||
(steam/set-achievement "FOOLISH_LULLABY"))
|
||||
:else
|
||||
(do
|
||||
(actions/talk entities :ego "Ugh! I have Gandarf's MagicSafe 2000 tune stuck in my head.")
|
||||
(actions/talk entities :ego "Ugh! I have Gandarf's MagiSafe 2000 tune stuck in my head.")
|
||||
(actions/play-safe entities))))
|
||||
|
||||
:alarm-clock
|
||||
|
||||
Reference in New Issue
Block a user