diff options
Diffstat (limited to 'src/tilemap.h')
-rw-r--r-- | src/tilemap.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |