Cub3d is a graphical project from 42 School that involves creating a simple 3D game engine using raycasting. It is inspired by early 90s games like Wolfenstein 3D and aims to render a first-person 3D view based on a 2D map. The project covers several topics such as graphics rendering, handling input, and managing game mechanics like player movement and collision detection. It is designed to give students experience with low-level graphics programming and event-driven game loops.
My goal for this project was to create a game inspired by the world of The Walking Dead. For this purpose, the textures of the wall are a bit gory as for the zombies. You can also kill the zombies with a knife and I advise you to wear earphones if you don't want everybody around you to ear the opening song of The Walking Dead.
This project is compatible on Linux.
1.Clone the repository
git clone https://github.com/MatLBS/Cub3D_42.git
cd Cub3D_422.Compile and lauch the project.
make
./cub3D maps/map_you_want.cubThe map file must be in .cub format, as indicated in the cub3d specifications.
W, A, S, D to move the player.
⬅️, ➡️ to move the camera of the player.
Press E near a door to open/close it.
Press Ctrl once to be able to move the camera with the mouse.
Press again Ctrl once to disable this feature.
Finaly, keep pressing on Left Click to take out your knife and kill the zombies 🧟
Pull requests are welcome !
For major changes, please open an issue first to discuss what you would like to change.
Enjoy the code 😁



