Hold 'q' to change ray count Use arrows to move around Raycasting is a rendering technique to create a 3D perspective in a 2D map. The most well known game that used this technique, is Wolfenstein 3D.
Here You can learn more: https://lodev.org/cgtutor/raycasting.html