NAME

Games::Roguelike - Rogelike Library for Perl

SYNOPSIS

package myworld;
use base 'Games::Roguelike::World';

$r = myworld->new(w=>80,h=>50,dispw=>40,disph=>18);     # creates a world with specified width/height & map display width/height
$r->area(new Games::Roguelike::Area(name=>'1'));                    # create a new area in this world called "1"
$r->area->genmaze2();                                   # make a cavelike maze
$char = Games::Roguelike::Mob->new($r->area, sym=>'@', pov=>8);      # add a mobile object with symbol '@'
$r->setvp($char);                                       # set viewpoint to be from $char's perspective
$r->drawmap();                                          # draw the active area map from the current perspective
while (!((my $c = $r->getch()) eq 'q')) {
       $char->kbdmove($c);
       $r->drawmap();
}

DESCRIPTION

library for pulling together field of view, character handling and map drawing code.

* Games::Roguelike::World is the primary object used
* uses the Games::Roguelike::Console library to draw on the screen
* assumes the user will be using overridden Games::Roguelike::Mob's as characters in the game
* Games::Roguelike.pm itself is a just a utility module used by other classes

SEE ALSO

Games::Roguelike::Area, Games::Roguelike::Mob, Games::Roguelike::Console

AUTHOR

Erik Aronesty erik@q32.com

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html or the included LICENSE file.