summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi24
1 files changed, 5 insertions, 19 deletions
diff --git a/doc/api.texi b/doc/api.texi
index e93263e..14310a2 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -2051,19 +2051,15 @@ Translate the pixel coordinates (@var{x}, @var{y}) into tile
coordinates.
@end deffn
-@deffn {Procedure} draw-tile-map tile-map [#:layers] [#:region] @
+@deffn {Procedure} draw-tile-map tile-map [#:layers] [#:camera] @
[#:origin] [#:position] [#:scale] [#:rotation]
-Draw the layers of @var{tile-map}. By default, all layers are drawn.
-To draw a subset of the available layers, pass a list of layer ids
-using the @var{layers} keyword argument.
-
-Refer to @code{draw-sprite} (@pxref{Sprites}) for information about
-the other arguments.
+Draw the layers of @var{tile-map} as viewed from @var{camera}, a 2D
+vector offset. By default, all layers are drawn. To draw a subset of
+the available layers, pass a list of layer ids using the @var{layers}
+keyword argument.
@end deffn
-@subsubsection Tilesets
-
@deffn {Procedure} tileset? obj
Return @code{#t} if @var{obj} is a tileset.
@end deffn
@@ -2100,8 +2096,6 @@ Return the tiles in @var{tileset}.
Return the custom properties of @var{tileset}.
@end deffn
-@subsubsection Tiles
-
@deffn {Procedure} tile? obj
Return @code{#t} if @var{obj} is a tile.
@end deffn
@@ -2118,8 +2112,6 @@ Return the animation for @var{tile}.
Return the custom properties of @var{tile}.
@end deffn
-@subsubsection Animations
-
@deffn {Procedure} animation-frame? obj
Return @code{#t} if @var{obj} is an animation frame.
@end deffn
@@ -2132,8 +2124,6 @@ Return the tile for @var{frame}.
Return the duration of @var{frame}.
@end deffn
-@subsubsection Layers
-
@deffn {Procedure} tile-layer? obj
Return @code{#t} if @var{obj} is a tile layer.
@end deffn
@@ -2174,8 +2164,6 @@ Return the objects for @var{layer}.
Return the custom properties of @var{layer}.
@end deffn
-@subsubsection Objects
-
@deffn {Procedure} map-object? obj
Return @code{#t} if @var{obj} is a map object.
@end deffn
@@ -2200,8 +2188,6 @@ Return the shape of @var{obj}.
Return the custom properties of @var{obj}.
@end deffn
-@subsubsection Polygons
-
@deffn {Procedure} polygon? obj
Return @code{#t} if @var{obj} is a polygon.
@end deffn