Stephen68 Posted March 23, 2009 Share Posted March 23, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/150723-grid-map-layout/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.