You can see footage of the Yet Another Spelunky Mod in the video showing entire levels of Spelunky Classic and aiding to visualize how individual rooms within the level are generated using hand-crafted templates with random variations. Mark’s narration and very polished editing make his video the best place to start if you’re interested how Spelunky’s levels are generated, or procedural generation in general.
If you’re interested in reading more on the subject, the next step would be to look at Spelunky Generator Lessons by Darius Kazemi or reading Derek Yu’s book, “Spelunky” (paperback/eBook). Read an excerpt from the book on Gamasutra.
You can also check out some of my previous posts linked below that contain lots of screenshots of level generation in Spelunky Classic. You could also play with generating a bunch of levels in Yet Another Spelunky Mod yourself (read farther down on the mod description page for instructions on accessing the Test Chamber, where you can generate levels to your specifications).
- Support Mark Brown’s Game Maker’s Toolkit video series on Patreon
- Procedural Generation – How Games Create Infinite Worlds – Extra Credits (YouTube)
- Procedural Generation (Tumblr) – General procedural generation posts, including game design.
- The Full Spelunky on Spelunky – A post by Derek Yu from 2011 that includes illustrations of the procedural level generation process.