gen-biome
Version:
Procedural generation of 2D maps with distinct biomes
43 lines (42 loc) • 781 B
TypeScript
export type WorldConfig = {
/**
* World width
*/
width: number;
/**
* World height
*/
height: number;
/**
* Frequency of biomes change
* Default: 0.3
* Min: 0.0, Max: 1.0
*/
frequencyChange?: number;
/**
* Smoothness of biomes borders
* Default: 0.5
* Min: 0.0, Max: 1.0
*/
borderSmoothness?: number;
/**
* Redistribution of biomes height
* Default: 1.0
* Min: 0.5, Max: 1.5
*/
heightRedistribution?: number;
/**
* Averaging of biomes height
* Default: true
*/
heightAveraging?: boolean;
/**
* Scale of falloff area
* Default: 0.0
*/
falloff?: number;
};
export type WorldPoint = {
x: number;
y: number;
};