Break up tiled-map-renderer into separate functions

This commit is contained in:
oakes
2014-01-08 14:10:11 -05:00
parent a534d49a90
commit b6bce49d40
3 changed files with 32 additions and 16 deletions

View File

@@ -16,10 +16,12 @@
(defn draw-actor!
[^SpriteBatch batch {:keys [^Actor object] :as entity}]
(assert object)
(.draw ^Actor object batch 1))
(defn draw-image!
[^SpriteBatch batch {:keys [^TextureRegion object x y width height]}]
(assert (and object x y width height))
(.draw batch object (float x) (float y) (float width) (float height)))
(defn draw-entity!