Skip to content
/ Cub3D Public

Cub3D is a project of school 42 made to recreate the first FPS video game in raycasting history, Wolfenstein3D.

Notifications You must be signed in to change notification settings

JCluzet/Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D for MacOS & Linux | Success with 114%

Cub3D is a 42's project made to recreate the first FPS video game in raycasting history, Wolfenstein3D.

BASIC PARTS 📝 :

ezgif com-gif-maker

Other example of Basic Parts with crazy import texture :

ezgif com-gif-maker

TO RUN :

make re && ./cub3D maps/map.cub

BONUS PARTS 114/115 💥 :

ezgif com-gif-maker

TO RUN :

make bonus && ./cub3D_bonus maps/map_BONUS.cub

Bonus Parts include :

  • Open Door with key 9 ✔️
  • Switch Ligths with key 0 ✔️
  • 2 types of Sprites ✔️
  • Shadow effect based on distance ✔️
  • Color Minimap ✔️
  • Door ✔️
  • Lose Life by walks next to monster (works with a variable from 0 to 100) ✔️
  • Gun ✔️
  • Collision with walls ✔️

Keys for qwerty keyboard ⌥ :

  • [FORWARD] = W

  • [GO_LEFT] = A

  • [GO_RIGHT] = D

  • [BACKWARD] = S

  • [ROTATION_RIGHT] = →

  • [ROTATION_LEFT] = ←

  • [EXIT] = ESC

KEY for bonus part :
  • [OPEN_DOOR] = 9
  • [SWITH_LIGHTS] = 0

↓ Resources for textures 64x64 downloaded here: http://www.wolfenvault.com/resources.html

Project completed thanks to the precious help of Lodev and his Raycasting tutorial : https://lodev.org/cgtutor/raycasting.html

Video (in french) to understand how raycasting work : https://www.youtube.com/watch?v=ZAlMicFhHmM

👋🏼 If you encounter any problems when launching the game or if you have any questions, don't hesitate to send me an e-mail : jcluzet@student.42.fr

About

Cub3D is a project of school 42 made to recreate the first FPS video game in raycasting history, Wolfenstein3D.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published