Game::TextMapper::Command::render
text-mapper random [--hex|--square|help]
This takes a map description on STDIN and prints the SVG on STDOUT.
text-mapper random | text-mapper render > map.svg
help prints the man page.
help
--hex is the default: this uses Game::TextMapper::Mapper::Hex to render a hex map.
--hex
--square uses Game::TextMapper::Mapper::Square to render a square map.
--square
This is important if the algorithm can produce both kinds of map, like Game::TextMapper::Schroeder::Alpine.
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
To install Game::TextMapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::TextMapper
CPAN shell
perl -MCPAN -e shell install Game::TextMapper
For more information on module installation, please visit the detailed CPAN module installation guide.