Skip to content

wwwwelton/raycasting-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raycasting C

A simple game to study raycasting using C and SDL 2.

Raycasting Programming with C

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.

Gameplay

alt text

Getting started

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

Updating

This project can be updated with new features in the future.

📝 License

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

About

A simple game to study raycasting using C and SDL 2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages