minor tweaks.

This commit is contained in:
Bryce Covert
2015-10-27 16:22:28 -07:00
parent 6e9729dbd5
commit 328a522468
6 changed files with 12 additions and 11 deletions

View File

@@ -31,8 +31,8 @@
(defn scene-world->talk-world [scene-viewport [x y]]
(let [[screen-x screen-y] (utils/project {:viewport scene-viewport} [x y])
x (/ screen-x (/ (game :width) 1280.0 ))
y (/ screen-y (/ (game :height) 960.0 ))]
x (Math/round (/ screen-x (/ (game :width) 1280.0 )))
y (Math/round (/ screen-y (/ (game :height) 960.0 )))]
[x y]))
(defscreen talking-screen