Home > Dungeon League, Planet Roguelike > Endorheic Basins

Endorheic Basins

Added code to create endorheic basins. The same code is used to split islands into drainage basins as before but before the rivers are run the endorheic basins can be generated in places where a large body of water will fit. To do this I use FBM noise and polarize it to form the shapes of many different lakes. These lakes are then evaluated to see which will fit in the basin then one that will fit is randomly chosen based on a minimum size and placed at a random anchor point within the basin. After that the same river processing class for coastal drainage basins is used to create rivers in the endorheic basin.

The river running algorithm has been tweaked to reduce useless short tributaries. I reduced the number of tributaries being generated as well which looks better given the scale and creates a better elevation map.

Next steps:

  • Generate lakes where rivers join and as sources.
  • Tweak elevation, too much mountain right now (Might just need to tweak the palette).
  • Generate continental shelf and ocean depth.
  • Multi-thread the drainage basin splitting code.

Related posts:

  1. No comments yet.
  1. No trackbacks yet.