Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.1 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.1 KB

42cursus_cub3D

Cub3D 42 project badge

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 true FPS in videogame history.

Clone

Clone the repository including the MiniLibX submodule:

git clone https://github.com/Ekkoz897/42cursus_cub3d

Compile and Run

There are two versions of the program, the mandatory part and the bonus part. The bonus part adds wall collision, a minimap, and the ability to rotate the view by moving the mouse.

To compile the mandatory part, cd into the cloned directory and:

make

To run the program:

./cub3D <path/to/map.cub>

The program takes a map file as an argument. Maps are available in the assets/maps directory. There are good maps which the program should run smoothly with, and bad maps which the program should reject.

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 (bonus only)

Useful Resources

Useful resources for this project are:


Made by Ratavare and Ekkoz