Development repo for 42cursus' cub3D project
For further information about 42cursus and its projects, please refer to 42cursus repo.
Small simulated 3D game inspired by the famous Wolfenstein 3D game. We need to create a "realistic" 3D graphical representation of the inside of a maze from a first person perspective, using ray casting principles.
For detailed information, refer to the subject of this project
Clone the repository in your computer using the following command:
git clone https://github.com/iker-gonzalez/cub3d.git
Then, you need to run the command make
on the root directory.
This will compile the executable file cub3d
Last, run ./cub3d maps/map_of_your_choice
To play this game you can use any map of your choice as long as follows the following rules:
- The extension needs to be
.cub
- It must be surrounded by walls
1
- Characters allowed:
Character | Object |
---|---|
1 | wall |
0 | Empty |
N | Player starting position (north facing) |
E | Player starting position (east facing) |
S | Player starting position (south facing) |
W | Player starting position (west facing) |
You can use AWSD
to move UP
, DOWN
, LEFT
, RIGHT
respectively.
Use right and left arrows to look right and left in the maze.
For restarting the game press ESC
or click on the red cross on the upper-left corner of the window.
This two-person project was done with my colleague and friend Iñigo @Z3n42.