Cub3D is a 3D game engine project inspired by the classic Wolfenstein 3D. Developed as part of the 42 curriculum, this project focuses on building a basic 3D game engine from scratch using the C programming language.
- Ray-Casting Engine: Utilizes ray-casting techniques to render a simple 3D environment.
- Textures: Support for basic texture mapping on walls.
- Player Movement: First-person player controls for exploring the environment.
- Lighting: Basic lighting effects to enhance the visual experience.
- Minimalist Design: Emphasis on efficient code and optimization, aligning with low-level programming principles.
- Language: C
- Libraries: MiniLibX for graphics rendering
- Operating System: Unix-based (Linux, macOS)
- Clone the repository:
git clone https://github.com/yourusername/cub3D.git
- Navigate to the project directory:
cd cub3D
- Compile the project:
make
- Run the executable:
./cub3D [map_file]
- Use the arrow keys or
WASD
to move around. - Press
ESC
to exit the game.
src/
: Contains all source code files.include/
: Header files.maps/
: Example map files.textures/
: Texture images used in the game.
Feel free to fork this project, submit pull requests, or report issues.