WASD to move QE to strafe sideways Space to change rendering mode This is just a quick demo and not a full game In floating 2D mode the camera moves, in fixed-camera 2D mode the world moves, in 3D mode we also convert to 1st person and do some weird stuff to handle anything offscreen. Mathematical functions provided by Joel Yliluoma