Originally Posted by Old Pedant
My head hurts. So then why does the map need to be in a database table?
Or will you have several possible maps?
And why would you only use an on/off indicator? Why wouldn't you do something like
var map = [
where each letter is used to indicate what is there on the map? (e.g., f==forest, w==water, C==castle, g==grass, p==path).
And make it a 2D array, instead of just 1D, so the you can easily reference it via
That's what I was doing before when my game was only solo. When I think about it, I guess you're right, I probably don't need to put my grid in my DB if I'm going to copy it only once when the game starts. I don't really know why I really wanted it in a DB in the first place...
EDIT: If you're wondering, here is my game (solo) with its source code. http://www.youtube.com/watch?v=8EaAiazT2K4