diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-06-12 07:10:42 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-06-12 07:10:42 (GMT) |
commit | 56e879fd7ebdeabeb6b7e0b7a4a68ae893b7d1ff (patch) | |
tree | b8c8cac3f4663776a2594108fad2d2dff90c3847 /src | |
parent | d1f0099cfeef0bcaefd1363b0da60bfa06dfcf07 (diff) |
add points box in a1g3
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Area1Game3.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/Area1Game3.py b/src/game/Area1Game3.py index 8e1f9dd..ebf1d02 100644 --- a/src/game/Area1Game3.py +++ b/src/game/Area1Game3.py @@ -10,6 +10,7 @@ from api.Button import CButton from api.Sprite import CSprite from api.Label import CLabel from api.MultiLabel import CMultiLabel +from api.Points import CPoints from gettext import gettext as _ import sys @@ -46,6 +47,9 @@ class CArea1Game3(CGameState): self.mgirl_list = [] self.mCurrentState = 0 self.time = 0 + self.mBad = 0 + self.mGood = 0 + self.mBackground = Image.loadImage('assets/images/a1g3/a1game3.png', False) @@ -136,6 +140,9 @@ class CArea1Game3(CGameState): self.mDialogBad.set_size((200, 50)) self.mDialogBad.set_text(self.mBadA) + self.mPoints = CPoints() + self.mPoints.setXY(250, 10) + CGame().addChild(self.mPoints) #self.mTime = self.mDialogBoy1.getTimeState() self.mCurrentState = 0 @@ -195,8 +202,12 @@ class CArea1Game3(CGameState): CGame().removeChild(self.mButtonFalse) if self.mTupleQuestion[1] == True: CGame().addChild(self.mDialogGood) + self.mGood = self.mGood + 1 + self.mPoints.set_goods(self.mGood) else: CGame().addChild(self.mDialogBad) + self.mBad = self.mBad + 1 + self.mPoints.set_bads(self.mBad) self.mQuestionAnswered = True self.time = 0 @@ -207,8 +218,12 @@ class CArea1Game3(CGameState): CGame().addChild(self.mDialogBad) if self.mTupleQuestion[1] == False: CGame().addChild(self.mDialogGood) + self.mGood = self.mGood + 1 + self.mPoints.set_goods(self.mGood) else: CGame().addChild(self.mDialogBad) + self.mBad = self.mBad + 1 + self.mPoints.set_bads(self.mBad) self.mQuestionAnswered = True self.time = 0 @@ -261,6 +276,7 @@ class CArea1Game3(CGameState): CGame().removeChild(self.mDialogBoy2) CGame().removeChild(self.mDialogGood) CGame().removeChild(self.mDialogBad) + CGame().removeChild(self.mPoints) self.mButtonBackA1G3 = None self.mLabelQuestion = None @@ -273,4 +289,5 @@ class CArea1Game3(CGameState): self.mDialogBoy2 = None self.mDialogGood = None self.mDialogBad = None + self.mPoints = None
\ No newline at end of file |