 (ns super-koalio.core
   (:require [play-clj.core :refer :all]
             [play-clj.g2d :refer :all]
+            [play-clj.ui :refer :all]
             [super-koalio.entities :as e]
             [super-koalio.utils :as u]))
 
-(declare super-koalio main-screen)
+(declare super-koalio main-screen text-screen)
 
 (defn update-screen!
   [screen entities]

    (height! screen u/vertical-tiles)
    nil))

(defgame super-koalio
  :on-create
  (fn [this]
    (set-screen! this main-screen)))

    (when is-me?
      (x! screen x)
      (when (< y (- height))
        (set-screen! super-koalio main-screen text-screen)))
    (when-let [[tile-x tile-y] to-destroy]
      (tiled-map-layer! (tiled-map-layer screen "walls")
                        :set-cell tile-x tile-y nil)))
