Skip to content

Cub3D is a 42 school team project with the purpose of creating a 3D maze in C using raycasting and the graphic library Minilibx in the style of Wolfenstein3D. Coded with @nmunoz

Notifications You must be signed in to change notification settings

mariav7/cub3D_42project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo:


Coded with 💗 by: mflores- and nmunoz

Project

Subject PDF

The purpose of cub3D is to render a 3D maze in C using the graphic library miniLibX and using raycasting, inspired by the iconic game Wolfenstein3D.

The project encourages a deep understanding of graphics programming and serves as a hands-on exploration of classic video game rendering techniques.


Supported feautures

The project's requirements:

  • Keys to move:
    • W move forward
    • A move left
    • S move backward
    • D move right
    • ⬅️ rotate left
    • ➡️ rotate right
  • To exit:
    • press the ESC button
    • click the X on the window
  • Map files must be (.cub) type
  • Valid maps must be composed of the following characters only:
    • 0 for an empty space
    • 1 for walls
    • N or S or W or E for the player's view starting position (North, South, West, East)
  • Maps must be closed/surrounded by walls

Installation

Clone repository and compile program:

git clone git@github.com:mariav7/cub3D_42project.git
cd cub3D_42project && make

Run the program:

./cub3D maps/map1.ber

Run the program with valgrind to test for leaks:

chmod +xr leak_test.sh && ./leak_test.sh

About

Cub3D is a 42 school team project with the purpose of creating a 3D maze in C using raycasting and the graphic library Minilibx in the style of Wolfenstein3D. Coded with @nmunoz

Topics

Resources

Stars

Watchers

Forks