From 64903142ef901e8e4157f781108ffc9e2c8f18d4 Mon Sep 17 00:00:00 2001 From: oakes Date: Mon, 6 Jan 2014 13:59:40 -0500 Subject: [PATCH] Replace get-key-frame with animation-image --- src/play_clj/core_2d.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/play_clj/core_2d.clj b/src/play_clj/core_2d.clj index 816ed69..16fefa1 100644 --- a/src/play_clj/core_2d.clj +++ b/src/play_clj/core_2d.clj @@ -69,8 +69,8 @@ (utils/gdx-static-field :graphics :g2d :Animation ~(or (first args) :normal)))) -(defn get-key-frame +(defn animation-image ([screen ^Animation animation] - (.getKeyFrame animation (:total-time screen) true)) + (create-entity (.getKeyFrame animation (:total-time screen) true))) ([screen ^Animation animation is-looping?] - (.getKeyFrame animation (:total-time screen) is-looping?))) + (create-entity (.getKeyFrame animation (:total-time screen) is-looping?))))