https://github.com/janithl/go-terrain-gen
A simple terrain generator in Go, for shits and giggles
https://github.com/janithl/go-terrain-gen
cli-app golang terrain-generation
Last synced: 6 months ago
JSON representation
A simple terrain generator in Go, for shits and giggles
- Host: GitHub
- URL: https://github.com/janithl/go-terrain-gen
- Owner: janithl
- License: mit
- Created: 2019-09-18T01:37:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T02:37:14.000Z (almost 7 years ago)
- Last Synced: 2024-04-16T09:11:26.702Z (over 2 years ago)
- Topics: cli-app, golang, terrain-generation
- Language: Go
- Homepage: https://janithl.github.io/2019/09/go-terrain-gen-part-1/
- Size: 256 KB
- Stars: 19
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-terrain-gen

A simple terrain generator in Go, for shits and giggles
## Blogposts
* **[Part 1](https://janithl.github.io/2019/09/go-terrain-gen-part-1/)**:
Explore the concept behind the terrain generator, and write down the
pseudocode and convert it into a very rudimentary Go program
* **[Part 2](https://janithl.github.io/2019/09/go-terrain-gen-part-2/)**:
Refactor the Go code into using structs and methods to make adding features
easier, and add CLI flags to control variables such as map size
* **[Part 3](https://janithl.github.io/2019/09/go-terrain-gen-part-3/)**:
Better map visualisation: Added colours and shading to output of map to
terminal
* **[Part 4](https://janithl.github.io/2019/09/go-terrain-gen-part-4/)**:
Explore how to assign values to adjacent map elements, introduce randomness
in the form of cliff probability