From 9d050e6ba7c40c8ed92aa1eeab7a98d89ca85970 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 4 Jun 2019 17:12:36 -0400 Subject: 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. --- doc/api.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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] -- cgit v1.2.3