diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-03-27 13:15:10 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-03-28 18:05:22 (GMT) |
commit | 335ad73456ba3ec8f56811abddcaca4650199db1 (patch) | |
tree | db788baba57c7656c9bdb73eb9003a70dc87d59a /olpcgames/_version.py | |
parent | 6deeb3f569e6c9a1c02a32a011b7a96a58fa8443 (diff) |
Save and restore state of the game
Ability to 'save' (when the user closes the Activity) and 'restore' (when the
user launch it from the Journal or the Home without holding Alt) the state of
the game.
For this ability I had to upgrade 'olpcgames' to 1.6 because
'olpcgames.FILE_READ_REQUEST' and 'olpcgames.FILE_WRITE_REQUEST' events are
added in that version and those events are needed for this.
The data is saved (as JSON, with json module) in the 'event.metadata["state"]' and the timestamp state is saved in 'event.filename'.
This commit solves ticket #2393:
* http://bugs.sugarlabs.org/ticket/2393
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
Diffstat (limited to 'olpcgames/_version.py')
-rw-r--r-- | olpcgames/_version.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/olpcgames/_version.py b/olpcgames/_version.py new file mode 100644 index 0000000..6a4e1db --- /dev/null +++ b/olpcgames/_version.py @@ -0,0 +1,2 @@ +"""Module defining the current version of the library""" +__version__ = '1.6' |