Just a simple raycaster using SDL and c.
I created this project because I wanted to understand how raycasters work and explore the functionalities of SDL. My C skills aren't top-notch, so if you feel like cloning the repo and making a pull request, I'd really appreciate it. It could be as simple as fixing my grammar in English or refining the names of variables and functions. Thanks a bunch!
This project requires the following libraries:
- SDL2
Just run a make
(or mingw32-make build
if you are in windows), or if you like to type the command:
gcc -Wall -Wextra -Wpedantic -std=c99 -O2 ./src/*.c -lm -lSDL2 -o raycast
run ./raycast
(or ./raycast.exe
if you are in windows) after compiling
Up
move forward
Down
move backward
Left
turn left
Right
turn right
LShift
open map
I'll probably come back here later to improve the code :)