part4

command module
v0.0.0-...-79f35f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 2 Imported by: 0

README

A basic terrain generator in Go (Part 4)

Explore how to assign values to adjacent map elements, introduce randomness in the form of cliff probability


  • To build: go build -o bin/terrain .
  • To run: bin/terrain

Blog post can be found here

Usage:

$ bin/terrain --help
Usage of bin/terrain:
  -cliffs int
        percentage probability a cliff will randomly appear (default 15)
  -elev int
        levels of elevation on the map (default 9)
  -height int
        height of the map (default 16)
  -peaks int
        percentage probability a peak will randomly appear (default 5)
  -steps
        show the generation steps
  -width int
        width of the map (default 16)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL