I tried to add a floor to my ray casting engine. It was a terrible idea, because now it is running at about 3 fps for me :P THE GAME WON'T WORK UNLESS YOU PLAY IT ON PHOSPHORUS: https://phosphorus.github.io/#175075945 It works even faster on this link: https://sulfurous.aau.at/#175075945 Thanks to @-CodePro- for giving me the link above. Use WASD keys to move, and arrow keys to rotate. A lot of credit goes to this tutorial for explaining how to do ray casting: http://lodev.org/cgtutor/raycasting2.html