Skip to content

This project is a 3D game created from scratch written in C using an old graphic library mini-libx where i had to use ray-casting to make a dynamic view like wolfenstein 3D

Notifications You must be signed in to change notification settings

HYYPNNOSS/Graphic-3D-RayCasting

Repository files navigation

cub3D

Cub3D 42 project badge

Cub3D is a 42 school team project to create a dynamic view inside a 3D maps. Using the MiniLibX library, we must implement raycasting in the style of the famous Wolfenstein 3D game, the first true FPS in videogame history. This project is collaborative of Taha Braymi and Me.

Clone

Clone the repository including the MiniLibX submodule:

git clone https://github.com/HYYPNNOSS/Graphic-3d-Raycasting.git

Compile and Run

To compile the program, cd into the cloned directory and:

make

To run the program:

./cub3d maps/**anymap you want just make sure to add .ber at the end**

The program takes a map file as an argument. Maps are available in the 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

Useful Resources

Useful resources for this project are:

This image below can give you an idea about visual raycasting

raycast overview

This image can give you an idea about how the project look when executed

screenshot overview

About

This project is a 3D game created from scratch written in C using an old graphic library mini-libx where i had to use ray-casting to make a dynamic view like wolfenstein 3D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published