2 ms·
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 requiremen
by bhickey 14y 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/source/dgn-proclayouts.h https://gitorious.org/crawl/crawl/blobs/master/crawl-ref/sou...