Getting Started with TerraForge - BriannaLadson/TerraForge GitHub Wiki

Requirements

You'll need to install the following libraries in order to use TerraForge.

You can pip install them by using the following command:

pip install noise numpy pillow

Installing TerraForge

You can install TerraForge using pip.

pip install terraforge-core

Using TerraForge

Assuming that you have TerraForge installed or have the terraforge.py in your working directory, the first thing you have to do is import it into your file.

from terraforge import TerraForge

Next, you have to initialize it.

TerraForge()

Finally, you call its .generate method.

TerraForge.generate()

If you check inside your working directory. You'll see a biome_map.png and an elevation_map.png. Below are examples.

biome_map elevation_map