/Cub_3d

This project is an exploration of ray-casting, the same technology used in the groundbreaking first-person shooter game Wolfenstein 3D. You will create a 3D maze and use ray-casting to generate a dynamic view within the maze. Your challenge is to find a way out of the maze while navigating through it using the ray-casting technology.

Primary LanguageCMIT LicenseMIT

cub_3d - 42_project

Cub_3D

Description

cub_3d is a 42 project that aims to recreate a simple 3D maze using the raycasting technique. The project is written in C and uses the minilibX library for graphics rendering.

Table of Contents

Prerequisites

Before running cub_3d, make sure you have the following prerequisites installed:

  • macOS (only supports macOS due to the usage of the minilibX library)
  • Xcode command-line tools
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/rdoukali42/Cub_3d
  1. Enter the cub_3d directory:
cd Cub_3d
  1. Compile the project:
make

Usage

To run the cub_3d game, use the following command:

./cub3D path/to/map.cub

Replace path/to/map.cub with the path to your custom map file or choose one inside the /maps folder.

Controls

Use the following keys to control the game:

W: Move forward

S: Move backward

A: Strafe left

D: Strafe right

Left Arrow: Rotate left

Right Arrow: Rotate right

ESC: Exit the game

Contributing

Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or create a pull request.

License

MIT