Long ago, I read Masters of Doom, which introduced me to raycasting. I recently came across an absolutely mind-blowing tutorial on implementing raycasting in C++ (
https://lodev.org/cgtutor/raycasting.html). I still can't fully comprehend the brilliance of games like Wolfenstein 3D, which managed to create a 3D perspective within a 2D grid. It's nothing short of a miracle.