NAME
Game::TextMapper::Command::render
SYNOPSIS
text-mapper random [--hex|--square|help]
DESCRIPTION
This takes a map description on STDIN and prints the SVG on STDOUT.
text-mapper random | text-mapper render > map.svg
OPTIONS
help
prints the man page.
--hex
is the default: this uses Game::TextMapper::Mapper::Hex to render a hex map.
--square
uses Game::TextMapper::Mapper::Square to render a square map.
This is important if the algorithm can produce both kinds of map, like Game::TextMapper::Schroeder::Alpine.
EXAMPLES
Hex map:
text-mapper random Game::TextMapper::Schroeder::Alpine \
--role Game::TextMapper::Schroeder::Hex \
| text-mapper render > map.svg
Square map:
text-mapper random Game::TextMapper::Schroeder::Alpine \
--role Game::TextMapper::Schroeder::Square \
| text-mapper render --square > map.svg