Raycasting may seem simple, just draw a line, see what it hits first, and execute some code, but it has much more code behind one ray than you may think. This version of the raycast fires many rays in a cone, giving it the name conecasting. This use of conecasting also projects light around a dark room, illuminating surfaces. For controlling stuff, you use: Arrow Keys to move the Player A/D to strafe with the Player Space to hide all variables
Feel free to take the code, just credit @Sir-Cats-A-Lot as this is the second ALT account.