Skip to content

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

License

Notifications You must be signed in to change notification settings

proycon/procmapgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages