GithubHelp home page GithubHelp logo

hacdias / mapgen Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 2.0 20 KB

Pseudo-random map generator through OpenSimplex noise algorithm

License: MIT License

Go 100.00%
procedural-generation maps map-generation

mapgen's Introduction

Map Generator

Create beautiful and pseudo-random terrain-like maps.

a sample mat bit

Build Go Report Card Documentation

Install

To use it as a library, you need to get it through:

go get github.com/hacdias/mapgen

Soon, more documentation will be added about the final executable.

Usage

Documentation about using it as a library can be found on godoc.

Usage of mapgen:
  -t, --color transition         Color Transition in map generation overrites color palette transition
  -c, --colors filename string   File name with the color palette (default "defaultPalette.txt")
  -f, --filename string          File name to output (default "img.png")
  -h, --height int               Height of image (default 100)
  -l, --lacunarity float         Lacunarity (default 2.5)
  -o, --octaves int              Number of octaves (default 5)
  -p, --persistence float        Persistence (default 0.5)
  -x, --scale float              Scale (default 20)
  -s, --seed int                 Seed to generate the map (default random)
  -w, --width int                Width of image (default 100)

Contributing

PRs accepted.

License

MIT © All Contributors

mapgen's People

Contributors

hacdias avatar sousa99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sousa99 stelonix

mapgen's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.