How to create reproducible probability in map generation?
- by nickbadal
So for my game, I'm using perlin noise to generate regions of my map (water/land, forest/grass) but I'd also like to create some probability based generation too. For instance:
if(nextInt(10) > 2 && tile.adjacentTo(Type.WATER))
tile.setType(Type.SAND);
This works fine, and is even reproduceable (based on a common seed) if the…