Raycasting is one of those things that keeps coming back in game development: vision cones, fog of war, bullets, and even moving a character against walls. I wrote a small open source JavaScript library that answers the one question behind all of it, what does a ray hit, and I explain why knowing only about axis aligned boxes is enough for most 2D games. Ten interactive examples...
Subscribe in seconds and receive Emanuele Feronato's news feed updates in your inbox, on your phone or even read them from your own news page here on Specificfeeds.
You can select the updates using tags or topics and you can add as many websites to your feed as you like.
And the service is entirely free!
Follow Emanuele Feronato: Emanuele Feronato – italian geek and PROgrammer