NAME
Game::TextMapper::Smale - generate fantasy wilderness maps
SYNOPSIS
my $text = Game::TextMapper::Smale->new
->generate_map($width, $height, $bw);
DESCRIPTION
This generates a wilderness map based on the algorithm by Erin D. Smale. See the blog posts at http://www.welshpiper.com/hex-based-campaign-design-part-1/ and http://www.welshpiper.com/hex-based-campaign-design-part-2/ for more information.
METHODS
Note that this module acts as a class with the generate_map
method, but none of the other subroutines defined are actual methods. They don't take a $self
argument.
generate_map WIDTH, HEIGHT, BW
WIDTH and HEIGHT default to 20×10.
BW stands for "black & white", i.e. a true value skips background colours.
SEE ALSO
Erin D. Smale described this algorithm in two famous blog posts: http://www.welshpiper.com/hex-based-campaign-design-part-1/ and http://www.welshpiper.com/hex-based-campaign-design-part-2/.
The map itself uses the Gnomeyland icons by Gregory B. MacKenzie. These are licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.