Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re4: Map Storage For Game

by dooberwah (Pilgrim)
on Oct 24, 2001 at 21:23 UTC ( [id://121203]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Map Storage For Game
in thread Map Storage For Game

Allright, I think I know what your saying but I'd like a few more clarifications. I think I understand what your saying about the data storage. You would have an array of arrays for the x and y coordinate. You could then say $foo[x][y] and have that be a hash full of data about that piece of terrain (please correct me if I'm wrong).

My real question is: how would you propose I store this in a database? I've only been working with databases for a short time so I'm not that great at designing them yet.

-Ben Jacobs (dooberwah)
Homepage: http://dooberwah.perlmonk.org
PGP Public Key: http://dooberwah.perlmonk.org/mykey
"one thing i can tell you is you got to be free"

Replies are listed 'Best First'.
Re: Re4: Map Storage For Game
by dragonchild (Archbishop) on Oct 24, 2001 at 21:49 UTC
    Check out 121098, which is a second reply I made to your original node. That gives an idea on how to store this in a DB.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://121203]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found