Using the ingame save/load is a problem: it breaks imediatly when you make heavy changes and doesnt allow to restore older save files.

for save load: think about a structure.

For example:

ID
Content
ID
Content
ID
Content
...


ID sais which type of content is following next(player profile, level file etc if you aim to put it in one file)
After reading the ID, you continue with the required reading function for your content type.

Easy and simple.

EDIT. i.e. if ID is your ID for levelfiles, you know the structure. A level file could be like this:

Name
tilesize_x
tilesize_y
tileinfo1
tileinfo2
tileinfo3
...

and so on.
So you have a reading function which reads the leveldata the same way you have written it.(you might consider writing another function for your tileinfo, if its more than some values)

Greets
Rackscha

Last edited by Rackscha; 01/07/12 02:57.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development