NEW PVZ MUSIC ADDED! this is a project i have been working on for a while now 5-6 hours straight worth of trial and error it is not done yet either wasd or arrow keys to move
A raycaster is a project that renders a 3D world based on a 2D map a raycaster in scratch is useually a single frame and low resolution to prevent lag. Raycasting should not be mistaken with raytraceing, whitch renders rays with more physical accuracy, catering to reflection and refraction of light rays, and traces rays in two dimensions rather than one dimension like in a raycaster. raycasting works by casting "rays" to measure the distance to measure the distance to the nearest wall hence the term "raycaster". The program sends out rays starting from the player moving forward until it hits an object, at which point it takes the distance it has traveled and colors the pixel based on the distance. The rays are sent in different directions. After all rays have been sent, the complete picture will be seen.