Skip to content

Fecici/Doom-raycast-engine

Repository files navigation

The code shown is mostly from the YouTube guide by Coder Space (https://www.youtube.com/watch?v=ECqUrT7IdqQ). I was interested in how pseudo-3d works and am hoping to turn this project into a stepping stone for higher-level projects in the future. This is essentially an engine that can easily be added to at this point, and all it is is simple trigonometry. Multiple rays are cast according to their respective angle, where upon intersection wit a barrier, will calculate the distance from the player to the barrier. This distance (or depth as it is called in code) dictates the height of a rectangle which will be drawn at the apporpriate location on the screen. Hunderds of these thin rectangles create the illusion of depth, and hence the illusion of a third axis.

About

I followed a YouTube guide from Coder Space in order to learn pseudo-3d rendering with raycasting. This is is a project I intend to expand upon further, now that I've internalized how everything really works and why, and in the future, I want to learn and use newer techniques for 3d rendering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages