Demo of 2d Raycasting

This demo uses X engine but the underlying principles and math can be used elsewhere.