diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-08-22 03:59:35 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-08-22 03:59:35 (GMT) |
commit | 520a12491dee83dd373ca1fa04c0a0560afc8f02 (patch) | |
tree | 871a17b122f445c9d7384e3cf62c17e14ad2e94e /src | |
parent | 0c2096a9339a7c35ccea2aec3ce4f1876240b6b8 (diff) |
fix encode in a2g2
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Area1Game4.py | 2 | ||||
-rw-r--r-- | src/game/Area2Game2.py | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/game/Area1Game4.py b/src/game/Area1Game4.py index 30f8970..aa5aa5f 100644 --- a/src/game/Area1Game4.py +++ b/src/game/Area1Game4.py @@ -39,7 +39,7 @@ class CArea1Game4(CGameState): self.mPoints.setXY(250, 10) CGame().addChild(self.mPoints) - for i in range(6): + for i in area1game4_data.ITEMS.keys(): t = area1game4_data.ITEMS[i] q = (unicode(t[0], 'UTF-8'), unicode(t[1], 'UTF-8')) self.mQuestions.append(q) diff --git a/src/game/Area2Game2.py b/src/game/Area2Game2.py index ef33b04..baaf617 100644 --- a/src/game/Area2Game2.py +++ b/src/game/Area2Game2.py @@ -38,6 +38,11 @@ class CArea2Game2(CGameState): self.mBackground = Image.loadImage('assets/images/a2g2/a2game2.png', False) CGame().setBackground(self.mBackground) + self.list_questions = [] + for i in area2game2_data.ITEMS.keys(): + t = area2game2_data.ITEMS[i] + q = (unicode(t[0], 'UTF-8'), t[1]) + self.list_questions.append(q) self.mButtonBackA2G2 = CButton() self.mButtonBackA2G2.set_bgColor((0x99, 0x99, 0x66)) @@ -137,7 +142,7 @@ class CArea2Game2(CGameState): elif self.mCurrentState == 1: if self.mQuestionShowed == False: - self.mTupleQuestion = area2game2_data.ITEMS[self.mCurrentWheel] + self.mTupleQuestion = self.list_questions[self.mCurrentWheel] self.mLabelQuestion.set_text(self.mTupleQuestion[0]) CGame().addChild(self.mLabelQuestion) CGame().addChild(self.mButtonTrue) |