Skip to main content

Generate random terrain using cellular automata.

Project description

automatagen

Generate random terrain using cellular automata.

Compatibilities

  • Python 3.x
  • Any Operating System

Installation

automatagen is published on PyPi, so you only need to run the following command:

$ pip install automatagen

Usage

Note: TerrainGenerator.generate(width, height) returns a 2d array of boolean values. All visualisations are made using numpy and matplotlib.

Instantiating a new TerrainGenerator:

from automatagen import TerrainGenerator

terrgen = TerrainGenerator()

Generating a random 196x64 size map:

map = terrgen.generate(196, 64)

196x64 default settings

Instantiating a TerrainGenerator with different options:

terrgen = TerrainGenerator(initial_density = 0.25, steps = 10, loneliness_limit = 5)

Generating a random 196x64 map with the new options:

map = terrgen.generate(196, 64)

196x64 different options

Generating a 196x64 map with a specific seed:

map = terrgen.generate(seed = 9001)

196x64 seeded map

And generating another one with the same seed:

map = terrgen.generate(seed = 9001)

196x64 seeded map

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automatagen-0.2.post2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

automatagen-0.2.post2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file automatagen-0.2.post2.tar.gz.

File metadata

  • Download URL: automatagen-0.2.post2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for automatagen-0.2.post2.tar.gz
Algorithm Hash digest
SHA256 4c282927bb64736458206e20d34db78b5cf9370970e1e888a27d4c09768f8674
MD5 ebe0addaf29ef25eef93915e2d50f098
BLAKE2b-256 69da5bb82fc15be49ae0263ec33a3c2ff28209c5b12e89cacc7a25fdf77577a8

See more details on using hashes here.

File details

Details for the file automatagen-0.2.post2-py3-none-any.whl.

File metadata

  • Download URL: automatagen-0.2.post2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for automatagen-0.2.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 019598aff51e80b795f4b2f23a919a694cfdc1fc2090ca3a239759fd9ba90203
MD5 f2ff5eadda0b7a566455acd92aabc646
BLAKE2b-256 8836cc4d4dd0c10afc0f9c838f56d39e08bbc83b165fd9794913294b17d82c63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page