Replace get-key-frame with animation-image

This commit is contained in:
oakes
2014-01-06 13:59:40 -05:00
parent 398b83ea67
commit 64903142ef

View File

@@ -69,8 +69,8 @@
(utils/gdx-static-field :graphics :g2d :Animation (utils/gdx-static-field :graphics :g2d :Animation
~(or (first args) :normal)))) ~(or (first args) :normal))))
(defn get-key-frame (defn animation-image
([screen ^Animation animation] ([screen ^Animation animation]
(.getKeyFrame animation (:total-time screen) true)) (create-entity (.getKeyFrame animation (:total-time screen) true)))
([screen ^Animation animation is-looping?] ([screen ^Animation animation is-looping?]
(.getKeyFrame animation (:total-time screen) is-looping?))) (create-entity (.getKeyFrame animation (:total-time screen) is-looping?))))