|go ahead... be a heretic|
Mapping node relationshipsby one4k4 (Hermit)
|on May 13, 2003 at 13:03 UTC||Need Help??|
one4k4 has asked for the
wisdom of the Perl Monks concerning the following question:
Morning guys, it's been a while.
I've got a bit of an odd question / thought process happening here. I'm working on a MUD and for the purposes of this e-mail, lets simply say that it's complete and working..
I wanted to generate maps (using gif/pngs read: GD* type stuff) so that users can view where their character lies online, and so admins can track npc movements, pc movements, etc.. stuff like that.
But my first step is to simply map everything plain-n-simple like.
A sample database record contains something like this:
and so on..
I can add a column to specify the "type" of room, be it outdoors, woods, lava, etc.. but that's not an issue. Yet.
I've got a relationship table similar to the following:
That's how I can go about building the x,y,z stuff above. If the direction we moved is east, then x++, etc..
I looked into point based maps via some modules found on CPAN, but can't really think about how to draw the relationships.
For that matter, I can use a large-large table with 10px by 10px cells and map that way, but I'd like to use a png/image of sorts.
Any thoughts? Links? Flames?
Thanks in advance,
One4k4 - email@example.com (www.poorheart.com)