Alok Menghrajani

Security engineer at Square. Previously co-author of Hack and put the 's' in https at Facebook. Maker of CTFs.

Home | Contact me | Github | Twitter | Facebook

I wrote a ray caster in Ruby for fun. Using SDL, this piece of code lets you navigate a maze using your mouse.

Ray casting is the technique used by Wolfenstein 3D. It allows rendering 3D worlds with minimal computional work by assuming that all the walls are the perpendicular to the floor.

Source code

Permadi's tutorial written in 1996 is a fun read!.