Ray Casting Engine in Python