From c3c1e032e2219d53e48be6916af437e00d342603 Mon Sep 17 00:00:00 2001 From: oakes Date: Sat, 3 May 2014 02:31:59 -0400 Subject: [PATCH] Calculate origin-y by the height --- src/play_clj/entities.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/play_clj/entities.clj b/src/play_clj/entities.clj index c94e559..ffa027f 100644 --- a/src/play_clj/entities.clj +++ b/src/play_clj/entities.clj @@ -30,7 +30,7 @@ (let [scale-x (float (or scale-x 1)) scale-y (float (or scale-y 1)) origin-x (float (or origin-x (/ width 2))) - origin-y (float (or origin-y (/ width 2))) + origin-y (float (or origin-y (/ height 2))) angle (float (or angle 0))] (.draw ^SpriteBatch batch object x y origin-x origin-y width height scale-x scale-y angle))