cub_3d is a 42 project that aims to recreate a simple 3D maze using the raycasting technique. The project is written in C and uses the minilibX library for graphics rendering.
Before running cub_3d, make sure you have the following prerequisites installed:
- macOS (only supports macOS due to the usage of the minilibX library)
- Xcode command-line tools
- Git
- Clone the repository:
git clone https://github.com/rdoukali42/Cub_3d
- Enter the cub_3d directory:
cd Cub_3d
- Compile the project:
make
To run the cub_3d game, use the following command:
./cub3D path/to/map.cub
Replace path/to/map.cub with the path to your custom map file or choose one inside the /maps folder.
Use the following keys to control the game:
W: Move forward
S: Move backward
A: Strafe left
D: Strafe right
Left Arrow: Rotate left
Right Arrow: Rotate right
ESC: Exit the game
Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or create a pull request.