Procgen

https://attnam.com/topics/Procgen

The Cathedral of Attnam > General IVAN Discussion

#1 Dec 2, 2018, 7:14 am Hide

Lord_404

How does ivan generate it's maps ?
#2 Dec 3, 2018, 12:20 am Hide

chaostrom

I believe they're carved out of digital suffering.
#3 Dec 3, 2018, 4:58 am Hide

fejoa

What do you mean? The world map, or a dungeon map?
#4 Dec 3, 2018, 6:57 am Hide

Lord_404

Dungeon's ie GC UT

Id imagine it either connects some prefab rooms ie UT'S diamond shaped room GC'S Merka's shop using tunnels of diferent size's
#5 Dec 3, 2018, 5:49 pm Hide

red_kangaroo

I haven't really studied the level generation alogrithm much, but AFAIK it first tries to place all the prefab rooms for the level and force-aborts if unable to do so, then places some random rooms and generates all doors, then connects the doors and other square with required attachement by tunnels dug in the shortest way that doesn't intersect any room. There is no code to create wider tunnels - they happen randomly when two tunnels are created next to each other.
#6 Dec 4, 2018, 4:55 am Hide

fejoa

Have a go with this build-a-roguelike tutorial. It's in Python, but same idea: http://rogueliketutorials.com/libtcod/3