Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meltingice/cs-terrain-generator
A fractal terrain generator made especially for Cities: Skylines.
https://github.com/meltingice/cs-terrain-generator
Last synced: 24 days ago
JSON representation
A fractal terrain generator made especially for Cities: Skylines.
- Host: GitHub
- URL: https://github.com/meltingice/cs-terrain-generator
- Owner: meltingice
- License: mit
- Created: 2015-04-09T01:52:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-09T02:50:31.000Z (over 9 years ago)
- Last Synced: 2024-10-04T02:08:26.940Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CS Terrain Generator
Generate random fractal terrains for use in the game Cities: Skylines. Requires NodeJS/io.js to be installed.
## Install
``` bash
npm install cs-terrain-generator -g
```## Usage
Simply run the executable to generate a PNG heightmap of the correct size.
``` bash
cs-terrain-generator output.png
```There are multiple options to customize the fractal generation, such as: smoothness, lower clip, and upper clip.
* Smoothness `-s`: changes how "blurry" the final fractal looks. Lower values produce more discernable features. Must be between 0.0 and 1.0.
* Lower clip `-l`: clips data below a certain height value, which creates flat areas on the map. Great for generating oceans, ponds, canyons, etc. Value must be between 0 and 255.
* Upper clip `-u`: clips data above a certain height value, which helps to create plateaus. Value must be between 0 and 255.Here's an example command that could create some oceans and plateaus:
``` bash
cs-terrain-generator -s 0.5 -l 60 -u 60 output.png
```## Importing
For more information on importing heightmaps into Cities: Skylines, check out the [Skylines Wiki](http://www.skylineswiki.com/Map_Editor#Import_Heightmap).