The purpose of cub3D is to render a 3D maze in C using the graphic library miniLibX and using raycasting, inspired by the iconic game Wolfenstein3D.
The project encourages a deep understanding of graphics programming and serves as a hands-on exploration of classic video game rendering techniques.
The project's requirements:
- Keys to move:
Wmove forwardAmove leftSmove backwardDmove right⬅️rotate left➡️rotate right
- To exit:
- press the
ESCbutton - click the
Xon the window
- press the
- Map files must be (
.cub) type - Valid maps must be composed of the following characters only:
0for an empty space1for wallsNorSorWorEfor the player's view starting position (North, South, West, East)
- Maps must be closed/surrounded by walls
Clone repository and compile program:
git clone [email protected]:mariav7/cub3D_42project.git
cd cub3D_42project && makeRun the program:
./cub3D maps/map1.berRun the program with valgrind to test for leaks:
chmod +xr leak_test.sh && ./leak_test.sh