GithubHelp home page GithubHelp logo

proycon / procmapgen Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 7.36 MB

A small toy project written in Rust: procedural generation of various kinds of grid-based maps.

License: GNU General Public License v3.0

Rust 100.00%
rust pipes gamedev procedural-generation maps

procmapgen's Introduction

Procedural Map Generator

A small toy project written in Rust: procedural generation of 2D grid-based maps with simple terminal-based visualisations

Video

There are three kinds of graphs, and different styles of visualisation:

  • Pipe maps - an interconnected network of pipes/roads/subways/hallways or whatever you see in it.
    • No isolated subgraphs.
    • Two classes of pipes, a 'backbone' or set of core pipes (thicker) vs 'regular'
    • Simple visualisation (using unicode block drawing) to standard output
  • Height maps - Each cell has a height, good for landscapes. Can also be visualised as a heat map, terrain map.
  • Room maps - Rooms with corridors.

Screenshots

Screenshot

Screenshot

Screenshot

Build instructions

Assumes you have Rust and Cargo installed:

$ git clone https://github.com/proycon/procmapgen
$ cd procmapgen
$ cargo build --release

Usage:

$ cargo run -- --help

It's fun to use this with --loop 250 to see random ones continuously. The number is the amount of milliseconds to wait between maps:

$ cargo run -- --loop 250 --type height

procmapgen's People

Contributors

proycon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

risooonho

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.