Advertisement

Map Editor Questions

Started by July 12, 2001 06:11 PM
1 comment, last by mkoday 23 years, 7 months ago
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
Do you mean writing a code to save/load your custom map file?
Advertisement
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
RPG game programming and tutorials - Playable demo in Progress!
http://www.rrc2soft.com

This topic is closed to new replies.

Advertisement