added basic river generation

This commit is contained in:
Grimsace
2026-01-30 10:38:00 -06:00
parent 51c7bc9121
commit 30379f53f8
3 changed files with 332 additions and 12 deletions
+8
View File
@@ -20,6 +20,10 @@ type Settings struct {
TreeCoverage float64 `json:"tree_coverage"`
TreeClumpiness float64 `json:"tree_clumpiness"`
Seed int64 `json:"seed"`
Rivers int `json:"rivers"`
MinRiverWidth float64 `json:"min_river_width"`
MaxRiverWidth float64 `json:"max_river_width"`
RiverCurvyness float64 `json:"river_curvyness"`
}
func (s *Settings) Save() error {
@@ -67,6 +71,10 @@ func LoadSettings() (*Settings, error) {
TreeCoverage: 20,
TreeClumpiness: 50,
Seed: time.Now().UnixNano(),
Rivers: 0,
MinRiverWidth: 1,
MaxRiverWidth: 5,
RiverCurvyness: 50,
}, nil
}
return nil, err