cub3D creates a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective using the ray-Casting algorithm and 42 school's own graphic library miniLibX. Detailed project requirements can be found here.
1. Compilation:
To compile the program, please run the following command:
make
2. Running the Program:
The program takes a map in format of *.cub as argument:
map.cub
An example of map loos like this:
F 76,76,76
C 99,99,99
NO textures/simonkraft/cobblestone.xpm
SO textures/simonkraft/cobblestone_01.xpm
WE textures/simonkraft/mossy_cobblestone1.xpm
EA textures/simonkraft/cobblestone_02.xpm
1111111111111111111
10W1001001001000001
1011000001000001001
1001001001111101111
1001111000001001001
1000000000000001001
1001111111111001001
1111000000000001011
1000000001000000001
1111111111111111111
Use the following command format to run the program:
./cub3d map.cub