Welcome to cub3d, an immersive first-person 3D game built using ray-casting! 🧊 This project demonstrates how to render 3D spaces from 2D maps, creating a game experience that is both fun and technical. Let’s dive into the world of 3D game development! 🌟
In cub3d, we develop a 3D first-person view game using ray-casting technology, simulating 3D spaces through mathematical rendering. The project includes real-time environment rendering, textures, player movement, and game logic! 🎯
- 🔹 3D first-person view with ray-casting.
- 🔹 Interactive movement and real-time rendering.
- 🔹 Support for bonus levels with enhanced features like animated blocks, minimap and doors.
- 🔹 Uses MacroLibX for graphical rendering.
To get started, follow these steps to set up and run the project:
-
Clone the repository and the MacroLibX submodule (required for graphical rendering):
git clone https://github.com/mdev9/Cub3d.git cd cub3d git clone https://github.com/seekrs/MacroLibX.git make
-
Run the game with a valid map:
./cub3d maps/map.cub
- Or run the bonus version with a bonus map:
make bonus ./cub3d_bonus maps_bonus/map_bonus.cub
- C 💻: Core language used to build the game.
- Ray-casting 📡: Rendering technique to simulate 3D spaces.
- MacroLibX 🖼️: Lightweight graphical library for handling the rendering.
- libft 📚: Custom utility functions.
- Create a fully functional 3D game using ray-casting.
- Learn about real-time rendering and 3D space simulation.
- Implement efficient player movement and interaction within a 3D world.
Thank you for checking out cub3d! 🎮 Happy gaming and coding! 🚀