diff --git a/desktop/resources/behindhouse/collision.png b/desktop/resources/behindhouse/collision.png index 2170857e..8c822993 100644 Binary files a/desktop/resources/behindhouse/collision.png and b/desktop/resources/behindhouse/collision.png differ diff --git a/desktop/src-common/advent/screens/rooms/behind_house.clj b/desktop/src-common/advent/screens/rooms/behind_house.clj index e584dae6..2da2c3ea 100644 --- a/desktop/src-common/advent/screens/rooms/behind_house.clj +++ b/desktop/src-common/advent/screens/rooms/behind_house.clj @@ -13,17 +13,24 @@ (defn make-night [entities] (assoc-in entities [:room :entities :peeling :opacity] 0)) +(defn make-left-dir [box] + {:box box + :script (actions/get-script + entities + (actions/walk-to entities :ego [122 140] :skip-type :end) + (actions/transition-background entities :outside-house [244 150]) + (actions/walk-to entities :ego [158 110])) + :cursor :left}) + (defn make [screen] (rooms/make :music {:day :town-2 :night :night} :name "Behind house" :interactions - {:left-dir {:box [0 131 154 224] - :script (actions/get-script - entities - (actions/walk-to entities :ego [122 140] :skip-type :end) - (actions/transition-background entities :outside-house [244 150]) - (actions/walk-to entities :ego [158 110])) - :cursor :left} + {:left-dir-1 (make-left-dir [0 48 20 240]) + :left-dir-2 (make-left-dir [0 160 148 217]) + :left-dir-3 (make-left-dir [130 120 154 160]) + + #_:crack #_{:box [68 100 73 114] :script (actions/get-script entities @@ -38,7 +45,7 @@ (actions/play-animation entities :ego :squat) (actions/give entities :mushrooms) (actions/talk entities :ego "Perfectly ripe mushrooms!"))))} - :window {:box [103 100 130 140] + :window {:box [109 100 130 153] :script (actions/get-script entities (actions/walk-to entities :ego [128 100])