cub3D project from 42 School, inspired by the Wolfenstein 3D game.
The goal was to create a dynamic view inside the maze based on the 2D map using raycasting and the small graphics library MiniLibX.
Example of the input: the input file includes floor and ceiling colors, textures for walls in each direction and 2D map where "1" represents a wall and "0" represents empty space.
- Look Around: Use the left and right arrow keys to rotate your view.
- Move: Use W, A, S, and D keys to move forward, left, backward ans right.
- Quit: Press the ESC key or click the cross on the window frame to exit the program.
Clone the repository
git clone https://github.com/rngina/cub3D.git
Include MiniLibX to the root of the project and then run
make
Execute the program
./cub3d <path/to/map.cub>