Cast unit to float in tiled map constructors
This commit is contained in:
@@ -369,7 +369,7 @@ screen coordinates.
|
|||||||
(OrthogonalTiledMapRenderer. ^TiledMap (if (string? path)
|
(OrthogonalTiledMapRenderer. ^TiledMap (if (string? path)
|
||||||
(tiled-map* path)
|
(tiled-map* path)
|
||||||
path)
|
path)
|
||||||
^double unit))
|
(float unit)))
|
||||||
|
|
||||||
(defmacro orthogonal-tiled-map
|
(defmacro orthogonal-tiled-map
|
||||||
"Returns an [OrthogonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/OrthogonalTiledMapRenderer.html)
|
"Returns an [OrthogonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/OrthogonalTiledMapRenderer.html)
|
||||||
@@ -389,9 +389,9 @@ with the tiled map file at `path` and `unit` scale.
|
|||||||
(defn isometric-tiled-map*
|
(defn isometric-tiled-map*
|
||||||
[path unit]
|
[path unit]
|
||||||
(IsometricTiledMapRenderer. ^TiledMap (if (string? path)
|
(IsometricTiledMapRenderer. ^TiledMap (if (string? path)
|
||||||
(tiled-map* path)
|
(tiled-map* path)
|
||||||
path)
|
path)
|
||||||
^double unit))
|
(float unit)))
|
||||||
|
|
||||||
(defmacro isometric-tiled-map
|
(defmacro isometric-tiled-map
|
||||||
"Returns an [IsometricTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricTiledMapRenderer.html)
|
"Returns an [IsometricTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricTiledMapRenderer.html)
|
||||||
@@ -413,7 +413,7 @@ with the tiled map file at `path` and `unit` scale.
|
|||||||
(IsometricStaggeredTiledMapRenderer. ^TiledMap (if (string? path)
|
(IsometricStaggeredTiledMapRenderer. ^TiledMap (if (string? path)
|
||||||
(tiled-map* path)
|
(tiled-map* path)
|
||||||
path)
|
path)
|
||||||
^double unit))
|
(float unit)))
|
||||||
|
|
||||||
(defmacro isometric-staggered-tiled-map
|
(defmacro isometric-staggered-tiled-map
|
||||||
"Returns an [IsometricStaggeredTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricStaggeredTiledMapRenderer.html)
|
"Returns an [IsometricStaggeredTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricStaggeredTiledMapRenderer.html)
|
||||||
@@ -437,7 +437,7 @@ with the tiled map file at `path` and `unit` scale.
|
|||||||
(HexagonalTiledMapRenderer. ^TiledMap (if (string? path)
|
(HexagonalTiledMapRenderer. ^TiledMap (if (string? path)
|
||||||
(tiled-map* path)
|
(tiled-map* path)
|
||||||
path)
|
path)
|
||||||
^double unit))
|
(float unit)))
|
||||||
|
|
||||||
(defmacro hexagonal-tiled-map
|
(defmacro hexagonal-tiled-map
|
||||||
"Returns a [HexagonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/HexagonalTiledMapRenderer.html)
|
"Returns a [HexagonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/HexagonalTiledMapRenderer.html)
|
||||||
|
|||||||
Reference in New Issue
Block a user