The Labyrinth Algorithm builds its levels out of hand-made room prefabs, but it doesn’t place them directly. It works in two passes. The first pass generates blueprints: marks in grid space that define where rooms will go, without any real geometry. The second pass is **ParseGen**, an algorithm inspired by recursive descent. It fits room shapes onto those blueprints, the same way a parser reads a stream of characters and decides which tokens they form. Each time a shape fits, a prefab with that footprint is spawned on top; those blueprints are no longer parsable, and a new set is chosen.
Blog
Write-ups on gameplay systems, technical art and engine tooling — devlogs, deep dives and lessons learned while building games.