top of page
2018-10-09_11-09-13.gif

Custom doom engine

One of the topics I enjoyed learning about was the 3D aspects of doom. They way they faked a 3D environment via raycast was a fascinating topic. This was the main reason I created the engine. Build in C++ using a custom engine I build over box2D. It has the ability to read a png file to create the environment. To make this process easier I created a map editor that save the drawn grid as a png.

 

An array is used to get the world information. This array uses a 0 for empty and 1-5 as a wall color. Then the distance is calculated for the wall and drawn in 2D to create a depth perspective. When the player moves all that happens is the player position is moved within the array.

bottom of page