Re: PerlRL 0.1



On 2005-10-02, Brendan Guild <dont@xxxxxxx> wrote:
> Da-Breegster wrote in
> news:slrndjtqf3.m2b.dabreegster@xxxxxxxxxxxxxxxxxxxxx:
>
>> I've finally done it. The first version of my Perl roguelike engine
>> is complete. Get it at
>> http://denonline.sourceforge.net/files/perlrl.tar.gz.
>
> I'm looking through the source to try to figure out how the engine works,
> but Perl can be a cryptic language and I'm not an expert. It seems to use
> features which aren't in my Perl books.
>
Heh. Features that aren't in books? Probably. Anything in particular you
don't get? Anywhere you see "Here be dragons...", you'd better stay
away. Those bits are especially weird.
> Will there be a version with comments or developer notes later?
> Do you have any words on the design?
Yeah, eventually.

I'll try to explain how the system generally works by explaining what
each module handles.

Areas contains routines that place and connect new rooms and hallways on
a dungeon.
Area::Cave is the first 'dungeon style.' It's simply rooms and hallways
connected together.
Characters' routines aren't too important, because they work. The
monster AUTOLOAD basically implements events in interactive fiction
style. Routines can interrupt actions like eating or wielding before or
after it happens.
Engine.pm contains the code that handles per-turn stuff.
All the per-game data should be in Game.
Interface::Curses simply handles displaying stuff.
Objects are pretty simple.
Structures are rooms or hallways, for now.
A tilemap is the set of individual tiles put together.
Utility contains random stuff.

As far as explaining the general idea, I'll eventually get around to it.
Sorry for the messy code; I've tried to be neat. If you think is this
bad, I should let you see 0.0.4...

Anyway, feel free to ask any specific questions. Or general ones, it
doesn't matter.
.



Relevant Pages

  • Temporarily redirecting STDOUT
    ... I'm writing some Perl routines on Windows 2000. ... routines calls RCS functions like this: ...
    (comp.lang.perl.misc)
  • Re: Learning Perl
    ... I have written a routines in Perl that accesses MySQL (to create a ... The code may bay help you. ... Useful Tools in Perl. ... NB there is no programmed help! ...
    (perl.beginners)
  • Re: How to in perl
    ... >I do a lot of small routines in perl for manipulating data and know ... > there has to be an easier way of trimming the spaces off the begining ... > There has to be a simpler way in perl than this. ...
    (comp.lang.perl.misc)
  • Re: How to in perl
    ... > I do a lot of small routines in perl for manipulating data and know ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Compiling/using socket client and server
    ... I'm aware of Perl. ... I am using a higher level language ... That's why I need to know how to compile this ... >> open source, skunkware, or commercial routines out ...
    (comp.unix.sco.misc)