First-person 3D representation of a maze using raycasting, This project’s objectives are similar to all school 42 first year’s objectives: Rigor, use of C, use of basic algorithms, information research etc.
The goal of cub3d is to make something using raycasting like Wolfenstein 3D.
The project runs using the MiniLibX, a simplified version of the Xlib. It can therefore only run in MacOSX, preferably on a computer with a solid CPU !
Using make run
will make and run the game.
You can also use make
to generate the cub3D
executable. You can launch it with ./cub3D map.cub
.
You can also just create a secreen shot with make save
, or ./cub3D map.cub --save
.
- You can move around the maze with
W
A
S
D
. - You can also rotate the view with the directional arrows
←
and→
. - To exit the game, press
ESC
or click the red cross.