💡 Raycasting program in C/C++
- Moveable player with visible rays
- Textures on walls, floor, and ceiling
- Renders 3D walls
- Including shading
- Small 8x8 map
A point on the map sends out, or casts, multiple rays in a specific direction with a defined length. This allows us to see a 3-dimensional world from a particular location on that map. The length of a ray is dependant on how far a wall is, in order for the ray to collide with it. The 3D perspective is drawn according to the distance of each ray. Simply, a 2D map is converted to a 3D perspective of a dot that is looking in a specific direction.
Any contributions made are greatly appreciated and welcomed. For major changes, please open an issue first to discuss what you would like to change.
- Fork the Project
- Create your Branch (
git checkout -b NewBranch
) - Commit your Changes (
git commit -m 'Add new feature'
) - Push to the Branch (
git push origin NewBranch
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.