A 3D graphics project inspired by the famous Wolfenstein 3D game, developed as part of the 42 school curriculum. This project aims to create a dynamic view inside a maze using raycasting techniques.
git clone https://github.com/Chamuraii/Cub3D.git
cd Cub3D
make all
For the complete project with bonus features:
make bonus
To run the program:
./cub3D maps/map.cub
To run the program with bonus:
./cub3D_bonus maps/map.cub
Replace map.cub
with the path to your map file.
Controls:
- W, A, S, D: Move the player
- Left/Right arrow keys: Rotate the camera
- ESC: Exit the game
- Raycasting technique for rendering 3D-like environments
- Textured walls
- Collision detection
- Customizable map parsing
Bonus features:
- Minimap display
- Wall collisions
- Animated sprite
- Move camera with mouse (Only works on MacOs because of the MLX library)
This project is part of the 42 school curriculum. While contributions are not expected, feel free to fork the project for your own learning and experimentation.
This project is licensed under the AGPLv3 License - see the LICENSE file for details.