This project focuses on creating a “realistic” 3D graphical representation of the interior of a maze from a first-person perspective, based on the principles of Ray-Casting.
Compile and run the program using the following commands:
make
./cub3D [map]
# Example:
./cub3D maps/ok_test_map_labyrinth.cub
Action | QWERTY Key | AZERTY Key |
---|---|---|
Move Up | W |
Z |
Move Down | S |
S |
Move Left | A |
Q |
Move Right | D |
D |
Quit | ESC |
ESC |
The program requires a map description file (with the .cub
extension) as its first argument.
The map must include only the following 7 characters:
Character | Description |
---|---|
0 |
Empty space |
1 |
Wall |
X |
Exit point of the map |
N, S, W, E |
Player's starting position and direction |
- The map must be fully enclosed by walls (i.e., surrounded by
1
). - Below is an example of a valid map:
1111111111111 1001000000001 1000011111001 100011E000001 1111111111111