Welcome to Cub3d! This is a 3D maze game developed using the C programming language and the powerful raycasting technique. The game is inspired by the famous Wolfenstein 3D game and aims to recreate its immersive gameplay experience.
- Full 3D graphics rendering using raycasting.
- Textured walls and animated sprites for a realistic environment.
- Real-time player movement and interactions.
- Adjustable screen resolution and field of view.
- Map parsing from a configuration file.
- Clone the repository:
git clone https://github.com/temasictfic/Cub3d.git
- Navigate to the project directory:
cd Cub3d
- Compile the game:
make
- Run the game:
./cub3D <path_to_map_file.cub>
Note: Replace <path_to_map_file.cub> with the path to your custom map file.
Upon running the game, you will be placed in the maze environment. Your goal is to navigate through the maze and collect collectibles. Use the controls mentioned below to move around and interact with the environment.
- W: Move forward
- A: Move left
- S: Move backward
- D: Move right
- E: Rotate right
- Q: Rotate left
- F: Open/Close door
- ESC: Exit the game