diff -r 000000000000 -r b2e3aa63e96c src/texture.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/texture.c Thu Jul 17 22:03:19 2025 -0400 @@ -0,0 +1,7 @@ +#include "texture.h" + +SDL_Point getTextureFromIndex(int index) +{ + SDL_Point texture = {index - 16 * floor(index / TILEMAP_DIMS), floor(index / TILEMAP_DIMS)}; + return texture; +}