Skip to content
/ cub3d Public

An introduction to raycasting by recreating a basic version of 1992s' Wolfenstein 3D in c.

Notifications You must be signed in to change notification settings

olebol/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3d

cub3d is an introduction to raycasting by recreating a basic version of 1992's Wolfenstein 3D in the C programming language. It is a game developed to run solely on the CPU using the MLX42 library. It utilizes the DDA algorithm for raycasting, providing a visually immersive experience with textures and wall collision.

Creators: @olebol and @evalieve

Cloning the Repository

To clone the repository, run the following command in your terminal:

git clone https://github.com/yourusername/cub3d.git

Running the Program Before running the program, ensure you have the MLX42 library installed on your system.

To compile and execute cub3d, navigate to the project directory and run the following commands:

make
./cub3d path_to_map.cub

Replace path_to_map.cub with the path to your desired map file.

Controls

W: Move forward

S: Move backward

A: Strafe left

D: Strafe right

Left Arrow: Rotate camera left

Right Arrow: Rotate camera right

Esc: Exit the game

Screenshots

About

An introduction to raycasting by recreating a basic version of 1992s' Wolfenstein 3D in c.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published