Well, another issue i've been having I realize i may be able to get help or at least a better understanding at these wonderfull forums.
Currently, in my RPG map editor, i save maps by:
1st) Load all data in a string
In the string i load data in a fashion like:
MapName|MapInfo|MapInfo|MapInfo then a line break. After that i scroll through all the tiles and save each tile data like: TileX,TileY,MoreData,...| Until its done. So my string roughly looks like:
MapName|MapInfo|MapInfo|MapInfo
TileX,TileY,MoreData,...|TileX,TileY,MoreData,...| TileX,TileY,MoreData,...|
2nd) And then i simply save it to a file.
This way when i go to open the file. I split the string by that line break, and then split the first half by the | character and now i have all that data. Then i go through the second half extracting all the tile information and loading it into my type.
My question is... Is there any easier, maybe more professional way of going about this?
Bookmarks