Jump to content
  • Advertisement
Sign in to follow this  
Anddos

save game system

This topic is 1028 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

Serialize everything that matters. Game state, various variables, everything. Just save it all, in a way that you can load it back of course.

Share this post


Link to post
Share on other sites

Basically... anything with mutable data for your current game state, excluding things you want to reset, will need to be written to file to be loaded from later.

 

You can do this in many different ways, and the way it works is completely dependent on the game you're making. My custom engine is a CRPG with lots of persistant data. So I serialize things that do not show up on the maps first, then I serialize all dynamic elements of the map to override the next load.

Share this post


Link to post
Share on other sites

You need to give more information about your game in order to get a good answer.

 

For a FPS with a checkpoint system (only save at checkpoints), it could be as simple as saving the player's stats/inventory, and which checkpoint you're at.

 

Or it could be as complicated as being able to serialize all game entities and being able to deserialize them to restore all game state exactly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!