Games::Maze::SVG::Rect - Build rectangular mazes in SVG.
Version 0.90
Games::Maze::SVG::Rect uses the Games::Maze module to create mazes in SVG.
use Games::Maze::SVG; my $foo = Games::Maze::SVG->new( 'Rect' ); ...
Create a new Games::Maze::SVG::Rect object. Supports the following named parameters:
String naming the wall format. Legal values are bevel, round, roundcorners, and straight.
String describing the breadcrumb design. Legal values are dash, dot, line, and none
Directory in which to find the ecmascript for the maze interactivity. Should either be relative, or in URL form.
Method always returns false.
Set the wall format for the current maze.
String specifying a wall format.
Returns a reference to self for chaining.
Convert the rectangular grid from ascii format to SVG definition references.
Reference to an array of rows
String specifying wall format.
Remove the extra horizontal space inserted to regularize the look of the rectangular maze
Method that returns the definition for the shapes used to build the walls.
Convert the supplied x and y coordinates into the appropriate real coordinates for a start position on this map.
returns a two element list containing (x, y).
Convert the supplied x and y coordinates into the appropriate real coordinates for a end position on this map.
Convert the supplied x and y coordinates into the appropriate real coordinates for a the position of the exit sign.
G. Wade Johnson, <wade@anomaly.org>
<wade@anomaly.org>
Please report any bugs or feature requests to bug-game-maze-svg@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Game-Maze-SVG. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-game-maze-svg@rt.cpan.org
Thanks go to Valen Johnson and Jason Wood for extensive test play of the mazes.
Copyright 2004-2006 G. Wade Johnson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Games::Maze::SVG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Maze::SVG
CPAN shell
perl -MCPAN -e shell install Games::Maze::SVG
For more information on module installation, please visit the detailed CPAN module installation guide.