Add animation function/macro and various macros in utils

This commit is contained in:
oakes
2014-01-15 16:43:42 -05:00
parent e07486ef63
commit 8e46219778
4 changed files with 57 additions and 34 deletions

View File

@@ -36,8 +36,8 @@
`(u/calls! ^TiledMapTileLayer (tiled-map-layer* ~screen ~layer) ~@options))
(defmacro tiled-map-layer!
[layer k & options]
`(u/call! ^TiledMapTileLayer (cast TiledMapTileLayer ~layer) ~k ~@options))
[object k & options]
`(u/call! ^TiledMapTileLayer (cast TiledMapTileLayer ~object) ~k ~@options))
(defn tiled-map-cell*
[screen layer x y]
@@ -49,8 +49,8 @@
~@options))
(defmacro tiled-map-cell!
[cell k & options]
`(u/call! ^TiledMapTileLayer$Cell ~cell ~k ~@options))
[object k & options]
`(u/call! ^TiledMapTileLayer$Cell ~object ~k ~@options))
(defn ^:private refresh-renderer!
[{:keys [renderer ui-listeners]} entities]