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
https://forums.phpfreaks.com/topic/150723-grid-map-layout/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.