A simple C++ game similar to Doom and Wolfenstein 3D.

- WASD: Move
- SX or DX mouse: Fire
- F: Open the doors
- ESC: Quit
This game use SDL2, SDL2_Image AND SDL2_ttf to work. Before build the project you need to follow this video to setup the header and lib file to make the game work; after that you can use the Makefile or this command:
g++ -Iinclude -Iinclude/sdl -Iinclude/headers -Llib -o DoomClone src/*.cpp -lmingw32 -lSDL2 -lSDL2_image -lSDL2_ttf -mconsoledirectly in the project's root to compile.
!!! You need to do the same step show in the video but with SDL2_ttf !!!
[NEED FIX] Or you can use Docker for Build and Run:
docker build -t doomclone .
docker run -it --rm doomclone- The player can shoot and kill enemies even if they are behind a wall
- Enemies get stuck in the wall
This game was created thanks to this tutorial: ssloy/tinycaster, which allowed me to learn the basics of game programming and 3D engines.
To better understand the principles of raycaster I recommend this page: Lode's Computer Graphics Tutorial