Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/olpcgames
Commit message (Collapse)AuthorAgeFilesLines
* Avoid crash on activity closeGonzalo Odiard2013-06-171-1/+1
| | | | | | | | This is a ugly hack, but works. If we found a better option, should replace it. Try to quit pygame at activity shutdown, instead of doing gtk.main_quit() when pygame ends. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* 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>
* adding triple quoted comment accidentally removedRafael Ortiz2012-04-111-1/+1
|
* coding utf-8 fixesRafael Ortiz2012-04-101-1/+3
|
* pep8 fixRafael Ortiz2012-03-281-4/+4
|
* Save and restore state of the gameManuel Kaufmann2012-03-2820-1072/+1519
| | | | | | | | | | | | | | | | | | 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>
* multiple pep8 fixesRafael Ortiz2012-02-011-19/+34
|
* space around operatorRafael Ortiz2012-02-011-2/+2
|
* pep8 fixRafael Ortiz2012-02-011-0/+1
|
* styleRafael Ortiz2011-12-261-18/+18
|
* style fixesRafael Ortiz2011-12-211-10/+10
|
* style fixesRafael Ortiz2011-12-211-12/+12
|
* style fixesRafael Ortiz2011-12-211-9/+9
|
* Maze: Remove KeepButton due to deprecationGonzalo Odiard2011-09-011-5/+1
| | | | 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
|
* removing EOL on olpcgamesRafael Ortiz2011-06-231-1/+0
|
* Ordering filesRafael Ortiz2011-05-1317-0/+2834