summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2019-06-04 17:12:36 -0400
committerDavid Thompson <dthompson2@worcester.edu>2019-06-04 17:12:36 -0400
commit9d050e6ba7c40c8ed92aa1eeab7a98d89ca85970 (patch)
tree54065f8904533fb9d3c8e894cbdebc3513f0f3dc /doc
parent3da34ff5fea10d783711a63d8f53851ce633600d (diff)
render: tiled: Add point->tile.
* chickadee/render/tiled.scm (point->tile): New procedure. * doc/api.texi (Tiled): Document it. * examples/tiled.scm: Render tile coordinates in bottom-left corner.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 3ea911b..5d7623b 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1612,6 +1612,11 @@ Return the layers of @var{tile-map}.
Return the custom properties of @var{tile-map}.
@end deffn
+@deffn {Procedure} point->tile tile-map x y
+Translate the pixel coordinates (@var{x}, @var{y}) into tile
+coordinates.
+@end deffn
+
@deffn {Procedure} draw-tile-map tile-map [#:layers] [#:region] @
[#:origin] [#:position] [#:scale] [#:rotation]