The ray-casting is done when camera_update() is called, and distances are stored in the Camera struct.
2D level represntation now drawn as minimap in it's own texture.