WASD or arrow keys to move space to toggle minimap Thought I'd try my hand at raycasting, being its the simplest way to display a "3D" image. Raycasting is essentially using"rays" to find objects from the player on a 2D plane and then drawing/casting that into a 3D image. basically, rays are constantly shot out from the player in range of angles, usually the player's field of view, or FOV, which keep moving away from the player until they collide with another object. the distance the ray traveled away from the player as well as the angle are then used to pinpoint the location of the object relative to the player. This lets the program mark that spot with a line, who's brightness and size depend on the direction and distance the ray traveled. the darker and small the line, the farther away the object is from the player. the brighter and larger, the closer. the minimap in the project is not just for show. It is also being used to find objects and draw them. the purple and green dot is the player, which is constantly shooting rays in a 90 degree FOV (45 degrees left from the player's center of view, and 45 degrees to the right) that finds walls and marks the distance and direction they were found at. the program then renders lines based off of where those rays stopped.
V1.21 changed the music to not be annoying :) V1.2 due to high demand, music has been added V1.1 fixed visuals kinda? doesn't do the weird rendering, but now things have a weird zoom in effect when you walk towards them. at very least, I think its good enough to post for now. based some of the coding off of @JamesOuO 's raytracing project to fix the angling issues for now. V1.0: first build. currently only renders using distance, which causes some weird visuals. thats also why nothing changes when you turn. working on fixing that!