The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Maze::SVG::Hex - Build hexagonal mazes in SVG.

VERSION

Version 0.90

SYNOPSIS

Games::Maze::SVG::Hex uses the Games::Maze module to create hexagonal mazes in SVG.

    use Games::Maze::SVG;

    my $foo = Games::Maze::SVG->new( 'Hex' );
    ...

FUNCTIONS

new

Create a new Games::Maze::SVG object. Supports the following named parameters:

Takes one positional parameter that is the maze type: Rect, RectHex, or Hex

wallform

String naming the wall format. Legal values are bevel, round, roundcorners, and straight.

crumb

String describing the breadcrumb design. Legal values are dash, dot, line, and none

dx

The size of the tiles in the X direction.

dy

The size of the tiles in the Y direction.

dir

Directory in which to find the ecmascript for the maze interactivity. Should either be relative, or in URL form.

is_hex

Method returns true.

is_hex_shaped

Method returns true.

convert_sign_position

Convert the supplied x and y coordinates into the appropriate real coordinates for a the position of the exit sign.

$x x coord from the maze
$y y coord from the maze

returns a two element list containing (x, y).

AUTHOR

G. Wade Johnson, <wade@anomaly.org>

BUGS

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.

ACKNOWLEDGEMENTS

Thanks go to Valen Johnson and Jason Wood for extensive test play of the mazes.

COPYRIGHT & LICENSE

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.