public BiomeOcean(World world, int seed) : base("default:ocean", BiomeTemperature.Normal, 30, 55, new Rgba32I(0, 153, 0, 255), world, seed) { _heightGenerator = new SimplexOctaveGenerator(seed, 4); _heightGenerator.SetScale(1 / 100f); }
public BiomeForest(World world, int seed) : base("default:forest", BiomeTemperature.Normal, 62, 70, new Rgba32I(0, 255, 0, 255), world, seed) { _heightGenerator = new SimplexOctaveGenerator(seed, 6); _heightGenerator.SetScale(1 / 20f); _treeGenerator = new OakTreeGenerator(seed); _treeOctaveGenerator = new SimplexOctaveGenerator(seed, 1); }
public BiomeGrid(OctaveGenerator temperatureGenerator, OctaveGenerator biomeGenerator, BiomeCollection[] biomes, Biome defaultBiome) { _temperatureGenerator = temperatureGenerator; _biomeGenerator = biomeGenerator; _biomes = biomes; _defaultBiome = defaultBiome; _allBiomes = new Dictionary <string, Biome>(); GenerateBiomesMap(); }
public BiomeMountains(World world, int seed) : base("default:mountains", BiomeTemperature.Normal, 70, 90, new Rgba32I(27, 162, 113, 255), world, seed) { _heightGenerator = new SimplexOctaveGenerator(seed, 1); _heightGenerator.SetScale(1 / 50f); _treeGenerator = new OakTreeGenerator(seed); _caveGenerator = new SimplexOctaveGenerator(seed, 7); _caveGenerator.SetScale(1 / 20f); _random = new Random(); }
public BiomePlains(World world, int seed) : base("default:plains", BiomeTemperature.Normal, 62, 66, new Rgba32I(53, 233, 83, 255), world, seed) { _heightGenerator = new SimplexOctaveGenerator(seed, 4); _heightGenerator.SetScale(1 / 100f); _treeGenerator = new OakTreeGenerator(seed); _treeOctaveGenerator = new SimplexOctaveGenerator(seed, 1); _treeOctaveGenerator.SetScale(100); }
public BiomeGrid(int seed, int temperatureOctaves, int temperatureSize, int biomeOctaves, int biomeSize, BiomeCollection[] biomes, Biome defaultBiome) { _temperatureGenerator = new SimplexOctaveGenerator(seed, temperatureOctaves); _biomeGenerator = new SimplexOctaveGenerator(seed, biomeOctaves); _temperatureGenerator.SetScale(1f / temperatureSize); _biomeGenerator.SetScale(1f / biomeSize); _biomes = biomes; _defaultBiome = defaultBiome; _allBiomes = new Dictionary <string, Biome>(); GenerateBiomesMap(); }
public BiomeDesert(World world, int seed) : base("default:desert", BiomeTemperature.Hot, 62, 70, new Rgba32I(92, 114, 68, 255), world, seed) { _heightGenerator = new SimplexOctaveGenerator(seed, 4); _heightGenerator.SetScale(1 / 30f); }