fairly accurate text positioning.

This commit is contained in:
=
2014-09-08 18:58:54 -07:00
parent 9b4efb8fc7
commit 8682b71b4d

View File

@@ -0,0 +1,9 @@
(ns advent.utils
(:require [play-clj.core :refer :all]
[play-clj.ui :refer :all]
[play-clj.utils :refer :all]
[play-clj.g2d :refer :all]))
(defn log-coords [screen entities]
(let [{:keys [x y]} (input->screen screen {:x (:input-x screen) :y (:input-y screen)})]
(println (:input-x screen) (:input-y screen) "->" x y)))