This project consists of creating a graphic engine (ray casting) using a minimal graphic library, like it is mlx. We are asked to parse the map information from a .cub file and use it to draw a 3d maze on the screen using raycasting principles. This project is inspired by the game Wolfenstein 3D.
cub3d_demo.mp4
- MacOS
- Mlx library
make
- Run
./cub3d ./maps/map4.cub
on a shell and leave it running
Key | Action |
---|---|
ESC |
exit game |
W |
move forward |
A |
move left |
S |
move backward |
D |
move right |
→ |
turn camera to right |
← |
turn camera to left |
- Ray casting
- Mlx library
- Key hooks
- Parsing