Skip to content
/ cub3D Public

cub3D project from 42 School, inspired by the Wolfenstein 3D game

License

Notifications You must be signed in to change notification settings

rngina/cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D

cub3D project from 42 School, inspired by the Wolfenstein 3D game.

Overview

The goal was to create a dynamic view inside the maze based on the 2D map using raycasting and the small graphics library MiniLibX.

Inside the maze

Example of the input: the input file includes floor and ceiling colors, textures for walls in each direction and 2D map where "1" represents a wall and "0" represents empty space.

Input file example

Controls

  • Look Around: Use the left and right arrow keys to rotate your view.
  • Move: Use W, A, S, and D keys to move forward, left, backward ans right.
  • Quit: Press the ESC key or click the cross on the window frame to exit the program.

cub3d gif

Compile and run

Clone the repository

git clone https://github.com/rngina/cub3D.git

Include MiniLibX to the root of the project and then run

make

Execute the program

./cub3d <path/to/map.cub>

About

cub3D project from 42 School, inspired by the Wolfenstein 3D game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published