top of page
Writer's pictureDavid Flores

Procedurally Generating a Maze

I recently worked on another interesting game dev related side project. This time, I decided to try my hand at procedural generation by randomly generating a maze I could walk around.

Procedurallly Generated Maze
It's like a big, beautiful, labyrinthine rainbow.

The above maze I created by following this tutorial, which is an amazing tutorial that taught me so much more than just randomly generating a maze. Definitely worth checking out if you're interested.


However, I decided I wanted to take this project one step farther by extending the code to generate in the vertical direction, as well.

Procedurally Generated 3D Maze
What secrets lie in the dark basements below?

In addition to making the maze three-dimensional, I also adjusted the lighting to give the maze a darker atmosphere while you walk around it. Unfortunately, the generation algorithm is more complicated now since it has to build multiple levels, so it takes a little bit longer to finish building everything. But, otherwise, it works great.

 

If only I was actually good at solving mazes.


8 views0 comments

Comments


bottom of page