(ns advent.screens.rooms.outside-jail (:require [advent.screens.rooms :as rooms] [advent.actions :as actions] [advent.screens.items :as items] [advent.utils :as utils] [clojure.zip :as zip] [play-clj.core :refer :all] [play-clj.ui :refer :all] [play-clj.utils :refer :all] [play-clj.g2d :refer :all])) (defn make [screen] (rooms/make :music :town-2 :interactions {:down-dir {:box [30 0 227 20] :script (actions/get-script entities (actions/walk-to entities :ego [159 5]) (actions/walk-straight-to entities :ego [159 -20]) (actions/transition-background entities :inside-castle [79 145] ) (actions/walk-to entities :ego [159 74])) :cursor :down}} :layers [(assoc (texture "outside-jail/background.png") :x 0 :y 0 :baseline 0)] :entities {} :collision "outside-jail/collision.png" :scale-fn (utils/scaler-fn-with-baseline 40 0.001 1.3) :start-pos [145 15]))