Games::RolePlay::MapGen::Exporter::Text - A pure text mapgen exporter.
use Games::RolePlay::MapGen; my $map = new Games::RolePlay::MapGen; $map->set_exporter( "Text" ); generate $map; export $map( "filename.txt" );
This is how they'd look in a rogue-like... Unfortunately, this design won't work with a cell based map... It'll have to look more like that below.
#.# #.# #.# #.# ##############+###########+######### .................................... ##############+###########+######### #.....# #.# #.....# #.# #.....# #.######### ####### #.......... ###########
Sadly, since every cell has up to 4 exits and adjacent cells aren't necessarilly open to eachother, the text based map has to have a little more space init.
|.| |.| |.| |.| - - - - - - - + - - - - - - - + - - - . . . . . . . . . . . . . . . . . . . - - - - - - - + - - - - - - - + - - - |. . . . .| |.| |. . . . .| |.| - - - |. . . . .| |. . . . - - - - - - - - -
Also, there's really no good visual way to show what kind of door we're looking at. I've chosen to use ANSI colors.
brown - a door red - locked blue - stuck magenta - locked and stuck
Games::RolePlay::MapGen
To install Games::RolePlay::MapGen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::RolePlay::MapGen
CPAN shell
perl -MCPAN -e shell install Games::RolePlay::MapGen
For more information on module installation, please visit the detailed CPAN module installation guide.