public static MapLayerBase GetBeachMapGen(long seed, int scale) { MapLayerPerlin layer = new MapLayerPerlin(seed + 1, 6, 0.9f, scale / 3, 255, new double[] { 0.2f, 0.2f, 0.2f, 0.2f, 0.2f, 0.2f }); MapLayerBase beach = new MapLayerPerlinWobble(seed + 986876, layer, 4, 0.9f, scale / 2); //forest.DebugDrawBitmap(1, 0, 0, "Forest 1 - PerlinWobbleClimate"); - Requires climate map return(beach); }
public static MapLayerBase GetClimateMapGen(long seed, NoiseClimate climateNoise) { MapLayerBase climate = new MapLayerClimate(seed + 1, climateNoise); climate.DebugDrawBitmap(0, 0, 0, "Climate 1 - Noise"); climate = new MapLayerPerlinWobble(seed + 2, climate, 6, 0.7f, TerraGenConfig.climateMapWobbleScale, TerraGenConfig.climateMapWobbleScale * 0.15f); climate.DebugDrawBitmap(0, 0, 0, "Climate 2 - Perlin Wobble"); return(climate); }
public static MapLayerBase GetOreMap(long seed, NoiseOre oreNoise, float scaleMul, float contrast, float sub) { MapLayerBase ore = new MapLayerOre(seed + 1, oreNoise, scaleMul, contrast, sub); ore.DebugDrawBitmap(DebugDrawMode.RGB, 0, 0, 512, "Ore 1 - Noise"); ore = new MapLayerPerlinWobble(seed + 2, ore, 5, 0.85f, TerraGenConfig.oreMapWobbleScale, TerraGenConfig.oreMapWobbleScale * 0.15f); ore.DebugDrawBitmap(DebugDrawMode.RGB, 0, 0, 512, "Ore 1 - Perlin Wobble"); return(ore); }
public static MapLayerBase GetLightningArcMap(long seed) { MapLayerBase wind = new MapLayerLines(seed + 1); wind.DebugDrawBitmap(DebugDrawMode.FirstByteGrayscale, 50, 50, "Wind 1 - Lines"); wind = new MapLayerBlur(0, wind, 3); wind.DebugDrawBitmap(DebugDrawMode.FirstByteGrayscale, 50, 50, "Wind 2 - Blur"); wind = new MapLayerPerlinWobble(seed + 2, wind, 4, 0.8f, 128, 40); wind.DebugDrawBitmap(DebugDrawMode.FirstByteGrayscale, 50, 50, "Wind 3 - Perlin Wobble"); return(wind); }