
This is a port of Lode Vandevenne's raycasting tutorial (see: http://lodev.org/cgtutor/raycasting.html ), and I cleaned it up to be kind of reusable code. With all the raycasters floating around on these forums, it felt like a good way to waste a few of my free hours this weekend. One of the interesting features of this raycaster and why I picked Lode's code as the base for my implementation, is that it separates the view from a single angle into two vectors, and then moves between integer ticks on the X and Y plane.
Of course, without sprites or floor/ceiling textures, this is very far from being usable in a game. But it should be good for learning. Enjoy!
Edit: Because Lode's tutorials are simple enough, I added Sprites as well. This makes my raycaster's TimeToCrate score a solid zero. Also easy to add was "looking" up and down. It's not really looking up or down, it's just changing the virtual center of the screen.
2nd Edit: Added my most recent version, innyrpgraycaster.love, separately.