A simple game to study raycasting using C and SDL 2.
This project is the second part of Professor Gustavo Pezzi's (Pikuma) course, Raycasting Programming with C. Using the SDL 2 library to facilitate the design of geometric shapes and the game loop, we can focus on the raycasting algorithm. The objective of this project was to deep into the mathematical concepts behind the raycasting algorithm used in the game Wolfenstein (1992), such as calculations of distances, height of walls, character and field of view using trigonometry.
Follow the steps below
# Requirements: SDL v2
# To install the SDL library, open the terminal window and write
sudo apt-get install libsdl2-dev
# Clone the project and access the folder
git clone https://github.com/wwwwelton/raycasting-c && cd raycasting-c/
# Run make so you can build the game
make
# Run the game
./raycast
# Well done!
Game Controller Keys
Move: Arrow keys
This project can be updated with new features in the future.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Made by Welton Leite 👋 See my linkedin