1

Basically, a continue from left off system... kinda like any game has. So far the idea I got going is to save the certain variables into a text file like name, health, xp, etc. and have a location variable that determines where the player is in the game and will act as the continue from left off. Is there a simpler way about going about doing this?

  • 2
    possible duplicate of [Saving an Object (Data persistence in Python)](http://stackoverflow.com/questions/4529815/saving-an-object-data-persistence-in-python) – abaldwin99 Aug 10 '15 at 16:34

2 Answers2

1

Save all this information in some sort of object and pickle it. https://docs.python.org/2/library/pickle.html

0

You could use pickle or json or xml. See also this question. Or this one. Or just google data persistence.

Community
  • 1
  • 1
David Mašek
  • 913
  • 8
  • 23