Skip to content
/ cub3D Public

This is the second graphics project at 1337 school (42 Network) , our first RayCaster with miniLibX.

Notifications You must be signed in to change notification settings

ablaamim/cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


cub3D :

This is the second graphics project at 1337 school , our first RayCaster with miniLibX.


What is Cub3D ?


Cub3D is a team project at 1337) that asks us to create a "3D" game engine with miniLibX. This project is inspired by the world-famous 90's game Wolfenstein 3D, which was the first FPS ever. The objective of this project is to deep dive into the mathematical concepts behind the ray-casting algorithm such as calculating distances, height, sprite locations and field of view to create a projection using primarily trigonometry.


---


Skills needed :


  • Rigor.
  • Imperative programming.
  • Graphics.
  • Algorithms & AI.

Raycasting :

Raycasting is a rendering technique ti create a 3D perspective in a 2D map (Grid)

  • it is considered one of the most basic graphics-rendering algorithms. Ray casting makes use of the same geometric algorithm as ray tracing.

Java-Script version of our raycaster engine :


A simple game to study raycasting using JavaScript and p5.js library.

Raycasting Programming with JavaScript This project is the first part of Professor Gustavo Pezzi's (Pikuma) course, Raycasting Programming with C. Using the p5.js library to facilitate the design of geometric shapes and the game loop, we can focus on the raycasting algorithm. The objective of this project was to deep into the mathematical concepts behind the raycasting algorithm used in the game Wolfenstein (1992), such as calculations of distances, height of walls, character and field of view using trigonometry.


Run the JS game version :


Compile :

the browser will be responsible of compiling the js-version. Open the /Raycasting_JS/index.html file with a web browser.

├─ Rycasting_JS

.

.

├── index.html

├── styles.css

├── p5.js

├── raycast.js

.

.


Game Controller Keys :

Move: Arrow keys.


Cub3d in C :


About

This is the second graphics project at 1337 school (42 Network) , our first RayCaster with miniLibX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages