Jump to content

Grid map layout


Stephen68

Recommended Posts

Ok I'm trying to make a map for a browser game that I'm trying to make. I have not coded anything yet, still trying to get it all down on paper so I have a really good idea on what I need. The map part has me confused as to how it should be done. It is basically just a grid that is going to be 200x200 square to start, I would like to have a graphic to show each block. Most of the blocks will look the same but some will be different and where people put their bases will of course look different again.

 

What I'm wondering if how would I store each location into the database? I was thinking I would have to make a new row for each block on the grid with fields like "image|owned|, ..ect... having the primary key the location on the grid. Is this the right direction for doing this kind of thing??

 

Hope I explained it well enough :(

 

Stephen

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.