Making a World Map for a game
Posted: Sat Sep 15, 2012 7:28 am
Hey guys, I have been trolling these forums for a while now. I have found a lot of useful tips etc and have decided to make a game.(I decided this before coming to these forums and googled game making and this forum was near the top).
I am currently trying to develop a world map as per my topic subject and am needing help to even get it started. Everyone of course knows about google maps. I would not like to use googles software at all but would like to develop a map similar to that.
*Where you can scroll in by moving the mouse wheel or pressing some sort of plus sign on the side.
*Where you can scroll left and right by left clicking and dragging your mouse in the direction you want.
*Where it only loads the tiles you wish to look at and then caching them for later use.
*Then ultimately making it phone/tablet friendly by making it so that instead of using the mouse wheel to zoom in and out they do it by touch screen movements(pushing two fingers out to zoom in and pushing two fingers in to zoom out). and using one finger to scroll left and right by sliding the map over.
*Then I need to be able to add data to this map such as players cities, as people join the game etc...
I sort of know what to do but will need help along the way and would like to be corrected if my ideas are bad.
*Step one: I have drawn a picture that somewhat resembles Australia(Lol, I'll eventually do the world but for now I have just stopped at one country).
*Step two: Obviously I have to break this picture up into pieces so that it has tiles etc... Therefore I have to decide on the different size tiles.
-For example the whole world will be one tile.
-Then if you zoom in on a certain area (Let's say the lower western region, it will zoom into that and once again that will be broken up into smaller tiles yet again, it will only load those tiles though. Unless they scroll to the right, over to the lower eastern region, then it will load those tiles as well and cashe the other ones.
- Now if they scroll left back into the lower western region, and they zoom in again on a section of the lower western region, it will go to the next level of tile, which will be smaller yet again and only load the ones from the section they zoomed into, unless they scroll right to another section of the western region.
- I want to be able to zoom in 4 times.
Zoom 1 map.
Zoom 2 Different regions.
Zoom 3 Different sections of those regions.
Zoom 4 Different cities on those sections of those regions(Lol tongue tied much?).
*Step three: Coding the above step so that it works correctly and it stores info for every section of the map on a database.
---------------------End of steps for now, will continue once the above are done---------------------
I have not started anything beyond step one. But have I approached this the right way?
If so, can i please get some tutorials where not only can i position stuff correctly on the map using css/php/html.
But so that it loads different sections on demand and displays the info for those sections.
I have found a map making topic in these forums and will try to refer to that topic for some of my steps at the start.
I am currently trying to develop a world map as per my topic subject and am needing help to even get it started. Everyone of course knows about google maps. I would not like to use googles software at all but would like to develop a map similar to that.
*Where you can scroll in by moving the mouse wheel or pressing some sort of plus sign on the side.
*Where you can scroll left and right by left clicking and dragging your mouse in the direction you want.
*Where it only loads the tiles you wish to look at and then caching them for later use.
*Then ultimately making it phone/tablet friendly by making it so that instead of using the mouse wheel to zoom in and out they do it by touch screen movements(pushing two fingers out to zoom in and pushing two fingers in to zoom out). and using one finger to scroll left and right by sliding the map over.
*Then I need to be able to add data to this map such as players cities, as people join the game etc...
I sort of know what to do but will need help along the way and would like to be corrected if my ideas are bad.
*Step one: I have drawn a picture that somewhat resembles Australia(Lol, I'll eventually do the world but for now I have just stopped at one country).
*Step two: Obviously I have to break this picture up into pieces so that it has tiles etc... Therefore I have to decide on the different size tiles.
-For example the whole world will be one tile.
-Then if you zoom in on a certain area (Let's say the lower western region, it will zoom into that and once again that will be broken up into smaller tiles yet again, it will only load those tiles though. Unless they scroll to the right, over to the lower eastern region, then it will load those tiles as well and cashe the other ones.
- Now if they scroll left back into the lower western region, and they zoom in again on a section of the lower western region, it will go to the next level of tile, which will be smaller yet again and only load the ones from the section they zoomed into, unless they scroll right to another section of the western region.
- I want to be able to zoom in 4 times.
Zoom 1 map.
Zoom 2 Different regions.
Zoom 3 Different sections of those regions.
Zoom 4 Different cities on those sections of those regions(Lol tongue tied much?).
*Step three: Coding the above step so that it works correctly and it stores info for every section of the map on a database.
---------------------End of steps for now, will continue once the above are done---------------------
I have not started anything beyond step one. But have I approached this the right way?
If so, can i please get some tutorials where not only can i position stuff correctly on the map using css/php/html.
But so that it loads different sections on demand and displays the info for those sections.
I have found a map making topic in these forums and will try to refer to that topic for some of my steps at the start.