Skip to content

Cub3D is a 42 school team project to create a dynamic view inside a 3D maze using raycasting in the style of Wolfenstein3D.

Notifications You must be signed in to change notification settings

Ekkoz897/42cursus_cub3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cub3D is a 42 school team project to create a dynamic view inside a 3D maze using raycasting in the style of Wolfenstein3D.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.4%
  • Roff 11.9%
  • Makefile 3.3%
  • Other 1.4%