This project is about creating a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective, using the Ray-Casting principles.
- Run
make
./cub3D [map] ex: ./cub3D maps/ok_test_map_labyrinth.cub
-
QWERTY
Up = W
Down = S
Left = A
Right = D -
AZERTY
Up = Z
Down = S
Left = Q
Right = D -
Quit = ESC
- The program takes as a first argument a map description file with the .cub extension.
- The map can be composed of only 7 possible characters:
0 for an empty space
1 for a wall
X for the map exit
N, S, W, or E for the player’s starting position and gaze direction
This is a simple valid map:
1111111111111
1001000000001
1000011111001
100011E000001
1111111111111
- The map must be closed/surrounded by walls.