Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/olpcgames/canvas.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix high cpu usage due to pygame mixer initialization - OLPC # 12677Gonzalo Odiard2013-05-151-0/+2
| | | | | | | | | pygame.init() initialize the mixer too [1], but in our case, we are not playing any sound, and the mixer is playing silence. [1] http://www.pygame.org/docs/ref/mixer.html#pygame.mixer.init Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Save and restore state of the gameManuel Kaufmann2012-03-281-26/+73
| | | | | | | | | | | | | | | | | | 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>
* fixing exec on activity.infoRafael Ortiz2011-08-021-2/+1
|
* imports in one line , updating activity.infoRafael Ortiz2011-06-231-2/+3
|
* Ordering filesRafael Ortiz2011-05-131-0/+124