Original Post
Old topic:
http://www.gamedev.net/community/forums/topic.asp?topic_id=572233
So I have made some progress on my browser game and now I want to store maps in a mysql database(still no idea how to do that either).
This link can paint tiles on a map :
Map Editor
The tiles that are available are stored in a database in a table. They can be modified here :
Tile Editor
Now what I'm thinking is adding a save map button to the map editor and it will take all the tiles in the map (40x20 right now but will probably be bigger later on) and somehow create a new table in the database or add all the tile info to a table. I have no idea how to add the maps to the database. Should I create a table per map or store each map as a row of a table? What about variable length stuff for example there might be buildings on the map which will be added by the editor.
Open for suggestions :)
http://www.gamedev.net/community/forums/topic.asp?topic_id=572233
So I have made some progress on my browser game and now I want to store maps in a mysql database(still no idea how to do that either).
This link can paint tiles on a map :
Map Editor
The tiles that are available are stored in a database in a table. They can be modified here :
Tile Editor
Now what I'm thinking is adding a save map button to the map editor and it will take all the tiles in the map (40x20 right now but will probably be bigger later on) and somehow create a new table in the database or add all the tile info to a table. I have no idea how to add the maps to the database. Should I create a table per map or store each map as a row of a table? What about variable length stuff for example there might be buildings on the map which will be added by the editor.
Open for suggestions :)