Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.75 KB

README.md

File metadata and controls

65 lines (40 loc) · 1.75 KB

cub3D

Cub3D is a 42 school team project to create a dynamic view inside a 3D maze. Using the MiniLibX library, we must implement raycasting in the style of the famous Wolfenstein 3D game, the first-person shooter (FPS) in videogame history.

Status

Grade: 115%.

Clone

Clone the repository including the MiniLibX submodule:

git clone https://github.com/ysahih/cub3D.git

Compile and Run

To compile the game, cd into the cloned directory and:

  • Compile the project using the provided build instructions:
make
  • Run the executable to launch Cub3D:
./cub3D <path/to/map.cub>
  • Enjoy exploring the graphical features and mathematical applications within the project.

The program takes a map file as an argument. Maps are available in the maps directory.

For example:

  • ./cub3D maps/map.cub should run.

Controls

Controls for movement and rotation are:

  • W: move forward
  • S: move backward
  • A: strafe left
  • D: strafe right
  • left arrow: rotate left
  • right arrow: rotate right
  • mouse: rotate by moving the mouse

Useful Resources

Useful resources for this project are:


Made by sahih and isBarka