Games::Maze::SVG::Manual

Games::Maze::SVG::Manual is a Perl module with manual for the Games::Maze::SVG modules.
Download

Games::Maze::SVG::Manual Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • G. Wade Johnson
  • Publisher web site:
  • http://search.cpan.org/~gwadej/Device-USB-0.21/lib/Device/USB/FAQ.pod

Games::Maze::SVG::Manual Tags


Games::Maze::SVG::Manual Description

Games::Maze::SVG::Manual is a Perl module with manual for the Games::Maze::SVG modules. Games::Maze::SVG::Manual is a Perl module with manual for the Games::Maze::SVG modules.PURPOSEThe Games::Maze::SVG module supports the creation of 2-dimensional mazes in an SVG format suitable for printing or playing interactively. This module use the Games::Maze module to perform the actual work of creating the mazes.HISTORYDuring the middle of 2004, my son was extremely interested in mazes. We could not get enough mazes for him to solve. As a Perl programmer, I decided there must be some way to generate mazes and went to CPAN. I found Games::Maze. I printed a few pages of these mazes, and he was happy.Unfortunately, the ASCII-based maze was not really satisfying for me. So I wrote code to convert the output of Games::Maze to SVG. This made much nicer looking mazes. I worked for a while to make the lines look better and to vary the corners to generate mazes that looked even better.But the mazes were still missing something. So, I added the scripting support that would make the maze playable. I wrapped an HTML form around the generation program to allow it to be launched from the web.I made this version available on my website. A friend of mine made some suggestions for individual visual changes that I incorporated. The design of the code did not change much during the next year. It was still a quick hacked wrapper around Games::Maze without much flexibility.A year later, a comment on the SVG Developers mailing list made me dust off the code with an ey towards making a legitimate Perl module out of it. When I began looking at the code again, I realized that the original had been more of a hack than I remembered. The new version still could use some significant cleanup, but I am much happier with the overall design.SYNOPSIS use Games::Maze::SVG; my $maze = Games::Maze::SVG->new( 'Rect', wallform => 'roundcorners' ); my $svgout = $maze->toString();OVERVIEWThe Games::Maze::SVG module can produce interactive or non-interactive mazes in SVG of three basic shapes. The shape of the maze is determined by the first parameter. This parameter is a string with one of the following values:RectA maze with a rectangular overall shape and rectangular hallways.RectHexA maze with a rectangular overall shape and hallways made from hexagonal cells.HexA maze with a hexagonal overall shape and hallways made from hexagonal cells.The mazes can be further configured using a set of named parameters that follow the shape parameter. Most of these parameters are independent of the shape chosen. In addition, the mazeparams parameter supports passing parameters directly to the internal Games::Maze object which is used to create the maze. Requirements: · Perl


Games::Maze::SVG::Manual Related Software