When I'll be older I'll be John Carmack
Create a little 3D maze game using raycasting
We went further than the subject asked. For the 'in subject' part we did the doors, the ennemies, animated sprites, a minimap and the collision with the walls, as for the rest we did a sort of re-creation of the zombies mode from Call of Duty (mainly World at War and Black Ops 1 for the inspiration)
So we added barricades for the zombies to spawn from, we added weapon, a box to buy a better weapon, doors that increase in price as the player opens the map, and perks in the map the player can buy too. My only regret is that we couldn't submit the project as feature complete as we wanted to due to the lack of time.
- kcolin - my peer
- B. - For the actual good textures
I absolutely loved making this project, we finished the mandatory part rather quickly, the real hiccup we met was understanding how to do a raycasting, we tried a first time, the raycaster was really sloppy and we weren't satisfied with how it worked, plus in certain conditions the rays wouldn't stop where they were supposed to. For the second raycaster we followed Lodev's tutorial on how to make a raycaster. After some trial and error mostly due to applying 42 norme on the code we managed to get a really nice raycaster.
As for the bonuses we added first sprites, correcting some what we percieved as oversights from Lodev (as our sanitizers were finding undefined behaviors). The sprite weren't really hard to implement as well as the rest of the bonus part we did.
I only regret two things, the first being that we didn't submit the project as feature complete as we wanted to like I said before but he second is being paradoxical as I understand that we spent way too much time on this project and we could've submitted way earlier, meaning this project seems (and is imo) quite incomplete and I will definitely improve it in the future
Requires
ccandmake
First clone the project:
git clone https://github.com/oyamabs/42-cub3d
Go into the directory and compile with make for the mandatory part. Type make bonus if you want to experience the 'real' cub3d we did.
Enjoy your cub3d!