Cub3D is the second graphic project written in C, using the MLX42 library.
It is built using the Ray-Casting technique, rendering scenes from a first-person perspective.
Textures are displayed based on the player's viewpoint.
Configuration file need to include:
- path to the textures
- floor and ceiling colors
- map itself
NO textures/no_wall.png
SO textures/so_wall.png
WE textures/we_wall.png
EA textures/ea_wall.png
F 25, 255, 100
C 220,30,0
111111111
100000001
100000001
100000001
100S00001
100000001
100000001
100000001
111111111
- W,D or Arrow keys up, down: Move forward and back.
- A, D: move to the left and right.
- Arrow Keys or Mouse: Rotate the player's view.
- ESC Quit the game.
- Clone repository
- Move to directory
cd cub3D
3.Run make file
make
- Run th program : example
./cub3D maps/valid/good1.cub