[Sugar-devel] [PATCH] Maze: fix to make activity start again

Manuel Quiñones manuq at laptop.org
Wed Aug 31 20:00:07 EDT 2011


The game_name attribute of PyGameActivity seems to be changed
accidentally from 'game' to 'maze'.  As the docstring of
PyGameActivity class states, game_name needs to match the name of a
module that contains the game loop in a function called main.

TIP: please test at least if the activity start before commit :)

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 activity.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/activity.py b/activity.py
index dbf6940..f21efdd 100755
--- a/activity.py
+++ b/activity.py
@@ -4,6 +4,6 @@ from gettext import gettext as _
 
 
 class MazeActivity(olpcgames.PyGameActivity):
-    game_name = 'maze'
+    game_name = 'game'
     game_title = _('Maze')
     game_size = None    # let olpcgames pick a nice size for us
-- 
1.7.4.4



More information about the Sugar-devel mailing list