Cub3D is a graphic design project that aims to create a 3D perspective in a maze using raycasting technology, similar to the famous Wolfenstein 3D game. This project is part of the 42 school curriculum.
- 🎯 Raycasting rendering engine
- 🏰 Textured walls
- 🎮 Smooth player movement
- 💥 Collision detection
- 🗺️ Dynamic map parsing
# Clone the repository
git clone git@github.com:mathisdev7/42-Cub3D.git
# Go to project directory
cd 42-Cub3D
# Compile the project
make
./cub3D map.cub
The map must be provided as a .cub
file with the following specifications:
Character | Description |
---|---|
1 |
Wall |
0 |
Empty space |
N |
Player start position (facing North) |
S |
Player start position (facing South) |
E |
Player start position (facing East) |
W |
Player start position (facing West) |
Key | Action |
---|---|
W |
Move forward |
S |
Move backward |
A |
Strafe left |
D |
Strafe right |
← |
Rotate camera left |
→ |
Rotate camera right |
ESC |
Exit game |
- macOS or Linux
- MinilibX library
- C compiler (gcc/clang)
This project is part of 42 School curriculum. For more information about 42, visit 42.fr.