minor tweaks.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user