From 457468a93d9a5a9ea6e1ca7d7f311e1c01048205 Mon Sep 17 00:00:00 2001 From: zlago Date: Sat, 14 Jun 2025 12:30:49 +0200 Subject: fixes --- src/tilemap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tilemap.h') diff --git a/src/tilemap.h b/src/tilemap.h index 0f2bebe..4b6774a 100644 --- a/src/tilemap.h +++ b/src/tilemap.h @@ -21,6 +21,9 @@ extern struct tilemap { } *tilemap, *next_tilemap; // tilemap collision functions +// public functions use pixel coordinates (not subpixel) +// raw functions have no bounds checking and use tile coordinates +// you shouldnt need to use the raw functions collision_T tilemap_tile_raw(struct tilemap *tilemap, int x, int y); collision_T tilemap_tile(struct tilemap *tilemap, int x, int y); -- cgit 1.4.1-2-gfad0