View Single Post
Old April 29, 2019, 12:55   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,780
Donated: $60
Nick is on a distinguished road
Chunks are just pieces of dungeon - usually a whole level, but levels can be made up of chunks. They will have all the rooms and corridors, and only has monsters, treasure and traps where the room specifies it (pits, vaults, etc). The _gen() functions will generally specify a level size, then call one or more _chunk() functions to fill it, then add rock other than granite, stairs, objects, traps, the player, and monsters.

FA levels are a whole nother deal, and mere designed prior to the chunk system. Basically they work by
  • placing exits
  • making paths to join all the exits
  • filling the level with appropriate terrain (grass for plains, trees for forest, etc)
  • adding "formations" which are little clumps of other terrain
  • sometimes adding ponds and/or "wilderness vaults"
although some like river levels or Nan Dungortheb levels work a bit differently, and the dungeon entrance levels are special too.

The curious may have noted that Angband now has a data file called world.txt which specifies all the levels and how to get from one to another. I have no idea why I mentioned that now
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote