Following along on RayLib
I just finished day 4 the Tile System, have been following along via raylib instead as I daily drive a Mac and my PC's not always available to me (hey we make do with the cards we have right?). General feel is that RayLib feels mostly the same to what I see on Ooga Booga. So definitely no issues following along. Has been a great exercise for me so far! Anyways, just wanted to point out that because RayLib uses source and destination Rectangles to draw the sprites, the destRect itself is already kinda like a range in itself. So you don't actually need to write range.c, and can just use the CheckCollision functions (https://www.raylib.com/cheatsheet/cheatsheet.html). The bounding range data itself is kinda encapsulated in the destRect already. Also GetMousePosition defaults to (0,0) even if the mouse isn't even active yet. So I did a 0,0 check (since it'll 99.999% not be 0,0 again once you start moving it cause floats) and cached that as a bool to check against for all the range or collision checks with the mouse. That way you don't have things highlighted in the top left corner of the window everytime you launch. Also, say hi if you're working on a Mac! So we can connect and help each other troubleshoot as we follow along! Esp if you're using raylib to follow along.