(ns advent.screens.rooms.space (:require [advent.screens.rooms :as rooms] [advent.actions :as actions] [advent.screens.items :as items] [advent.utils :as utils] [clojure.zip :as zip] [clojure.set :as set] [clojure.string :as str] [play-clj.core :refer :all] [play-clj.ui :refer :all] [play-clj.utils :refer :all] [play-clj.g2d :refer :all])) (defn make [screen] (let [blergh-stand (texture "space/blergh-stand.png") blergh-talk (texture "space/blergh-talk.png") blergh-flex (texture "space/blergh-flex.png") blergh-talk-anim (animation 0.3 [blergh-talk blergh-stand]) blergh-stand-anim (animation 0.7 [blergh-flex blergh-stand]) ] (rooms/make :music :town-1 :interactions {} :layers [(assoc (texture "space/background.png") :x 0 :y 0 :baseline 0)] :entities {:blergh (assoc (animation->texture screen blergh-stand-anim) :x 180 :y 50 :baseline 190 :anim blergh-stand-anim :anim-start 0 :stand blergh-stand-anim :talk blergh-talk-anim)} :collision "space/collision.png" :scale-fn (constantly 1.5) :start-pos [43 80])))