diff options
author | David Thompson <dthompson2@worcester.edu> | 2019-06-04 17:12:36 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2019-06-04 17:12:36 -0400 |
commit | 9d050e6ba7c40c8ed92aa1eeab7a98d89ca85970 (patch) | |
tree | 54065f8904533fb9d3c8e894cbdebc3513f0f3dc /doc/api.texi | |
parent | 3da34ff5fea10d783711a63d8f53851ce633600d (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/api.texi')
-rw-r--r-- | doc/api.texi | 5 |
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] |