If you click on a link and make a purchase we may receive a small commission. Learn more.

Geometry Of Death: Spelunky's Level Generation Explained

Spelunky's Level Gen Explained

If you're anything like me, you've played so much Spelunky that you can close your eyes and generate new levels for Derek Yu's roguelike platformer inside your own head. Here, look, I'm doing it now - bet on what's going to kill me...

It was a frog. Sigh.

For a more technical understanding of Spelunky's procedural level generation, take a look at Darius Kazemi's browser-based Spelunky level generator and associated guide.

Part one details how Spelunky generates rooms while guaranteeing there's always a route to the exit, while part two goes into more detail about the positioning of probabilistic and obstacle blocks. It's not the kind of information that's likely to make you any better at overcoming the gamut of obstacles the level generation spits up in a typical life, but it's a neat glimpse of how those challenges are created, and sure to be useful to anyone thinking of making a similar system in their own game.

I'm just new enough to this whole internet-writing thing that this feels to me like a magazine boxout come to life. I look forward to reading the real-time letters pages that will appear under this post later.

About the Author

Graham Smith avatar

Graham Smith

Editor-in-chief

Graham is to blame for all this.

Join the Rock Paper Shotgun supporter program

Sign up today and get access to more articles like these, an ad-free reading experience, free gifts, and help us create more great writing about PC games.

See more information

Comments

We love having a friendly, positive and constructive community - you lot are great - and we want to keep it like that. Our main commenting rule is "be excellent to each other". Please see our code of conduct, where you can find out what "be excellent" means. TL;DR? Respect others, think before you post, and be prepared for puns.

More News

Latest Articles