Skip to content

shimazadeh/Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D | Wolfenstein3d Inspired | 42Paris

A 3D game using self-implemented Wolfenstein's ray casting algorithm, allowing players to navigate through an immersive environment with textured walls and interactive objects.

Introduction

In this project we are asked to extract information from a .cub file and use that information to draw a 3d maze on the screen using raycasting principles.

Usage

This project was designed to be run using minilibx-linux. Ensure you have the correct libraries installed. If you are using Macos some updates may be needed on the Makefile and the code itself. To start:

  • git clone https://github.com/shimazadeh/Cub3D.git Cub3D
  • cd Cub3D && make
  • to start the game: ./cub3D map.cub
  • You may change or adjust the textures inside the texture folder as well as the map itself, the color of the ceiling/floor to your preference.
  • Use w,a,d and s keys on the keyboard to move foward, left, right and backward respectively.
  • Use right and left arrows to move the field of view to right and left respectively.

Basic Demo

Screen.Recording.2023-09-22.at.2.12.05.PM.mov

Sources

Here are the sources I used that helped me to figure out a lot:

About

a 3D game using self-implemented Wolfenstein's ray casting algorithm, allowing players to navigate through an immersive environment with textured walls and interactive objects.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages