diff --git a/desktop/resources/inside-house/safe-lock.png b/desktop/resources/inside-house/safe-lock.png new file mode 100644 index 00000000..6a94bc3d Binary files /dev/null and b/desktop/resources/inside-house/safe-lock.png differ diff --git a/desktop/src-common/advent/screens/rooms/inside_house.clj b/desktop/src-common/advent/screens/rooms/inside_house.clj index 3d46942d..c39592b6 100644 --- a/desktop/src-common/advent/screens/rooms/inside_house.clj +++ b/desktop/src-common/advent/screens/rooms/inside_house.clj @@ -27,7 +27,10 @@ wizard-stand (animation 0.2 (for [i (flatten [(repeat 10 0) 1])] (aget wizard-sheet 0 i))) wizard-talk (animation 0.2 (for [i [0 2 0 2 1 2 0 3 0 2 0 1 0 2]] - (aget wizard-sheet 0 i)))] + (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)))] (rooms/make :music :inside-fangald :interactions {:down-dir {:box [151 0 320 20] :script (actions/get-script entities @@ -55,6 +58,9 @@ :facing :left :script (actions/get-script entities (do-wizard-dialogue entities))) :stand) + :safe-lock (actions/start-animation screen (assoc (animation->texture screen safe-lock) :x 51 :y 95 :baseline 145 + :stand safe-lock) + :stand) :flask (assoc (texture "inside-house/flask.png") :x 265 :y 80 :baseline 240 :script (actions/get-script entities