Cub3D is a 42's project made to recreate the first FPS video game in raycasting history, Wolfenstein3D.
Other example of Basic Parts with crazy import texture :
TO RUN :
TO RUN :
- Open Door with key 9 ✔️
- Switch Ligths with key 0 ✔️
- 2 types of Sprites ✔️
- Shadow effect based on distance ✔️
- Color Minimap ✔️
- Door ✔️
- Lose Life by walks next to monster (works with a variable from 0 to 100) ✔️
- Gun ✔️
- Collision with walls ✔️
-
[FORWARD] = W
-
[GO_LEFT] = A
-
[GO_RIGHT] = D
-
[BACKWARD] = S
-
[ROTATION_RIGHT] = →
-
[ROTATION_LEFT] = ←
-
[EXIT] = ESC
- [OPEN_DOOR] = 9
- [SWITH_LIGHTS] = 0
↓ Resources for textures 64x64 downloaded here: http://www.wolfenvault.com/resources.html
Project completed thanks to the precious help of Lodev and his Raycasting tutorial : https://lodev.org/cgtutor/raycasting.html
Video (in french) to understand how raycasting work : https://www.youtube.com/watch?v=ZAlMicFhHmM
👋🏼 If you encounter any problems when launching the game or if you have any questions, don't hesitate to send me an e-mail : jcluzet@student.42.fr