Game::TextMapper::Alpine - generate an alpine landscape
This fills the map with some mountains and then traces the water flow down to the sea and off the map. With water, forests grow; but if the area remains at the same altitude, swamps form.
Settlements are placed at random in the habitable zones, but far enough from each other, and connected by trails.
In order to support hex and square maps, this class uses roles to implement coordinates, neighbours, and all that. This is why you need to specify the role before creating an instance of this class:
return Game::TextMapper::Schroeder::Alpine ->with_roles('Game::TextMapper::Schroeder::Hex')->new() ->generate_map(@params);
Game::TextMapper::Schroeder::Base Game::TextMapper::Schroeder::Hex Game::TextMapper::Schroeder::Square
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.