From fdadacda217ffb2c6edfb93f8d4c91528f670e28 Mon Sep 17 00:00:00 2001 From: Remington Covert Date: Sun, 14 Dec 2014 19:59:15 -0800 Subject: [PATCH] candle. --- .../src-common/advent/screens/rooms/inside_house.clj | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/desktop/src-common/advent/screens/rooms/inside_house.clj b/desktop/src-common/advent/screens/rooms/inside_house.clj index bd2aea4e..698a251b 100644 --- a/desktop/src-common/advent/screens/rooms/inside_house.clj +++ b/desktop/src-common/advent/screens/rooms/inside_house.clj @@ -99,7 +99,8 @@ (aget wizard-sheet 0 i))) safelock-sheet (texture! (texture "inside-house/safe-lock.png") :split 9 2) safe-lock (animation 0.1 (for [i (flatten [(repeat 20 0) 1 2 1 2 1 2 1 2 1 2 1 1 2 1 2 1 2 1 2 1 2 1 (range 3 20) 20 20 20 20 21 21 21 21 21 20 20 21 21 21 21 21 20 20 20 ])] - (aget safelock-sheet 0 i)))] + (aget safelock-sheet 0 i))) + candle (utils/make-anim (texture "inside-house/candle.png") [34 32] 0.2 [1 0 1 2])] (rooms/make :music :inside-fangald :interactions {:down-dir {:box [151 0 320 20] :script (actions/get-script entities @@ -130,6 +131,13 @@ :safe-lock (actions/start-animation screen (assoc (animation->texture screen safe-lock) :x 51 :y 95 :baseline 145 :stand safe-lock) :stand) + :candle (assoc (animation->texture screen candle) + :x 157 + :y 92 + :baseline 200 + :anim candle + :anim-start 0 + :script (actions/get-script entities (actions/do-dialogue entities :ego "It's just a candle."))) :flask (assoc (texture "inside-house/flask.png") :x 265 :y 80 :baseline 240 :script (actions/get-script entities