I'm helping make a game (written in Perl (that's why I posted it here)) and I'm trying to figure out how to store our map files. Our maps are a large coordinate plane and we'd like it to be able to have different kinds of terrain. One of our first ideas was to store all of our data in a large color-coded bitmap.

We'd like it to be able to tell us what the terrain for any coordinate, say (50, 72). If it helps at all, we are using the MySQL database to store most of our data. Mostly I'm looking for efficient ways to do lookup on our terrain so it doesn't take so much time.

Thanks so much.

-Ben Jacobs (dooberwah)
PGP Public Key:
"one thing i can tell you is you got to be free"