Hacker News new | ask | show | jobs
by bhickey 4872 days ago
And for another example: I wrote a terrain generator for the Abyss in Dungeon Crawl. Since the player is trapped in a hellish Lovecraftian place, the requirements for coherence are much more lax than Minecraft for example.

The algorithm defines some regular (columns, etc) and irregular (random walls) building blocks and then switches between them with Worley noise.

The code is available here: https://gitorious.org/crawl/crawl/blobs/master/crawl-ref/sou...