Coder Social home page Coder Social logo

map-generator's Introduction

Map-Generator

Simple map/terrain generator that supports exporting to OTBM, LUA, JSON and PNG. Work in progress!

Available parameters

This application won't work without parameters, so here are they:

  --help, -H
            Displays available parameters
  --size, -S (REQUIRED)
            Arguments: size
            Sets generated map size
  --filename, -F (REQUIRED?)
            Name of file with the map, don't add extension!
            Required if there's no --prefix argument present
  --prefix, -P (REQUIRED?)
            Prefix for generated files, don't add extension!
            Required if there's no --filename argument present
  --count, -C
            Default value: 1
            Count of files to be generated
  --output, -O
            Available formats: OTBM|PNG|JSON|LUA
            Default value: PNG
            Format of output file

            If OTBM format is chosen then map is saved in OTBMv2 version for client 8.60
            It can be then easily converted to other version in Remere's Map Editor
            WARNING: Maximum size for OTBM maps is 250x250 SQM, but It'll be fixed in future.
  --preset, -P
            Available presets: island
            Default value: island
            Preset for generated map
  --grayscale
            Works only with PNG format.
            Exports the map in the grayscale.

Map generation presets

At the moment there's only island preset, but more presets will be added soon!

Island preset examples:

Island Preset Image, Island Preset Image, Island Preset Image

How to use?

Here are some sample commands:

Generates 10 maps with 512x512 size and exports them to PNG files with map_ prefix.
./generator --size 512 --prefix map_ --count 10 --output PNG --preset island
Generates one 100x100 map and exports it to OTBM file with map.otbm file name
./generator --size 100 --filename map --output OTBM

map-generator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.