In collaboration with jroth
This project is inspired by the world-famous Wolfenstein 3D game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.
The project uses a small graphics library MLX42 to render the graphics, which inturn uses GLFW.
Camera rotation and movement is also created.The camera can moved using keys W, A, S, and D, for rotation LEFT and RIGHT arrow keys are used.
- Run
./setup_mlx.sh
to pull theMLX42
submodule from github - Install glfw
brew install glfw
on macsudo apt install glfw
on linux
make mlx
to compile theMLX42
librarymake
to compile theCub3D
./cub3D <path_to_map>
- e.g
./cub3D map.cub
- e.g