Add type hints and rename function

This commit is contained in:
oakes
2014-01-11 14:22:11 -05:00
parent 0e31eedcdb
commit cfca2eda29
3 changed files with 4 additions and 3 deletions

View File

@@ -74,7 +74,7 @@
(u/gdx-static-field :graphics :g2d :Animation
~(or (first args) :normal))))
(defn animation-texture
(defn animation->texture
([{:keys [total-time]} ^Animation animation]
(u/create-entity (.getKeyFrame animation total-time true)))
([{:keys [total-time]} ^Animation animation is-looping?]