Alok Menghrajani

Previously: security engineer at Square, co-author of HackLang, put the 's' in https at Facebook. Maker of CTFs.

This blog does not use any tracking cookies and does not serve any ads. Enjoy your anonymity; I have no idea who you are, where you came from, and where you are headed to. Let's dream of an Internet from times past.

Home | Contact me | Github | RSS feed | Consulting services | Tools & games

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 perpendicular to the floor.

Source code

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