Skip to content

Cub3D is a 42 project inspired by Wolfenstein 3D. It features a simple raycasting engine for rendering a 2D map in a 3D perspective.

Notifications You must be signed in to change notification settings

mathisdev7/42-Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Cub3D

📝 Description

Cub3D is a graphic design project that aims to create a 3D perspective in a maze using raycasting technology, similar to the famous Wolfenstein 3D game. This project is part of the 42 school curriculum.

✨ Features

  • 🎯 Raycasting rendering engine
  • 🏰 Textured walls
  • 🎮 Smooth player movement
  • 💥 Collision detection
  • 🗺️ Dynamic map parsing

🛠️ Installation

# Clone the repository
git clone git@github.com:mathisdev7/42-Cub3D.git

# Go to project directory
cd 42-Cub3D

# Compile the project
make

🚀 Usage

./cub3D map.cub

🗺️ Map Format

The map must be provided as a .cub file with the following specifications:

Character Description
1 Wall
0 Empty space
N Player start position (facing North)
S Player start position (facing South)
E Player start position (facing East)
W Player start position (facing West)

🎮 Controls

Key Action
W Move forward
S Move backward
A Strafe left
D Strafe right
Rotate camera left
Rotate camera right
ESC Exit game

🔧 Technical Requirements

  • macOS or Linux
  • MinilibX library
  • C compiler (gcc/clang)

👥 Authors

📄 License

This project is part of 42 School curriculum. For more information about 42, visit 42.fr.

About

Cub3D is a 42 project inspired by Wolfenstein 3D. It features a simple raycasting engine for rendering a 2D map in a 3D perspective.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published