Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.33 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.33 KB

Raycasting

💡 Raycasting program in C/C++

Features:

  • Moveable player with visible rays
  • Textures on walls, floor, and ceiling
  • Renders 3D walls
  • Including shading
  • Small 8x8 map

Raycasting explained:

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.

v1.0

v0.9

v0.8

Contributing

Any contributions made are greatly appreciated and welcomed. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the Project
  2. Create your Branch (git checkout -b NewBranch)
  3. Commit your Changes (git commit -m 'Add new feature')
  4. Push to the Branch (git push origin NewBranch)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.