diff --git a/desktop/resources/cat-tree/collision.png b/desktop/resources/cat-tree/collision.png index 2c63fe7b..ad96dfc1 100644 Binary files a/desktop/resources/cat-tree/collision.png and b/desktop/resources/cat-tree/collision.png differ diff --git a/desktop/src-common/advent/screens/scene.clj b/desktop/src-common/advent/screens/scene.clj index be31c5d9..00d55717 100644 --- a/desktop/src-common/advent/screens/scene.clj +++ b/desktop/src-common/advent/screens/scene.clj @@ -177,7 +177,8 @@ :up-dir {:box [60 180 224 240] :script (actions/get-script entities - (actions/walk-to entities :ego [137 204])) + (actions/walk-to entities :ego [137 204]) + (actions/transition-background entities :cat-tree [203 1])) :cursor :up} :left-dir {:box [0 40 20 140] :script (actions/get-script @@ -231,6 +232,18 @@ :entities {} :collision "behindhouse/collision.png" :scale-fn (scaler-fn-with-baseline 110 0.10 1.00)) + :cat-tree + (make-background :interactions + {:down-dir {:box [150 0 270 20] + :script (actions/get-script entities + (actions/walk-to entities :ego [203 1]) + (actions/transition-background entities :outside-house [137 204]) + (actions/walk-to entities :ego [195 140])) + :cursor :down}} + :layers [(assoc (texture "cat-tree/background.png") :x 0 :y 0 :baseline 0)] + :entities {} + :collision "cat-tree/collision.png" + :scale-fn (scaler-fn-with-baseline 110 0.10 1.20)) :outside-castle (make-background :interactions {:right-dir {:box [300 40 320 140]