Arduboy2DRaycast
Testing project for 2D tile based raycasting for the Arduboy.
Project is made with PlatformIO. To make it work with Arduino IDE you need to rename the "src" folder to "2DRaycast" and open the 2DRaycast.ino
file.
Problem
There is a 2D tilebased map with a player character on one tile.
The question is: what can the character see?
It's not enough to fill a circle with a given radius because there can be obstacles which are opaque.
Solutions
There are noumerous possible solutions with different pros/cons. You can read more about it here.
In this project it is solved with raycasting using Bresenham's Circle and Line algorithms.