Map Editor Questions
What kind of routine would be necessary to be able to save a map, then be able to call upon that map from the code?
Email: mikekoday@hotmail.com
Saving & Loading a map... read() & write() 
Being serious: I suppose that your map has an struct:
struct map {
bla, bla, bla...
}
When you save a map to HDD, just save that struct. When reading a map, just load that struct.
And what happens if the map has pointers->linked lists?. Save the static part of the map "as is" and save the dinamic part of the map without pointers, like in an array. I'll try to explain:
A->B->C->NIL => [3]ABC
Hope my stuff could be useful for you
Edited by - rrc2soft on July 16, 2001 3:45:19 AM

Being serious: I suppose that your map has an struct:
struct map {
bla, bla, bla...
}
When you save a map to HDD, just save that struct. When reading a map, just load that struct.
And what happens if the map has pointers->linked lists?. Save the static part of the map "as is" and save the dinamic part of the map without pointers, like in an array. I'll try to explain:
A->B->C->NIL => [3]ABC
Hope my stuff could be useful for you

Edited by - rrc2soft on July 16, 2001 3:45:19 AM
RPG game programming and tutorials - Playable demo in Progress!
http://www.rrc2soft.com
http://www.rrc2soft.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement