Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game2
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-11-15 04:01:40 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-11-15 04:01:40 (GMT)
commit1a61dae476a0232f1111ac36acbfc6c384794900 (patch)
treedad5cf270f21238ac4f896a97e347ddaaa89ded8 /game2
parent8f6895f91e54534b585edc4ad76fbd9c29d0688a (diff)
Added title mode to game 1
Fixed text at the end of game 1 and game 2 Fixed centering of text in game 2
Diffstat (limited to 'game2')
-rwxr-xr-xgame2/game2.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/game2/game2.py b/game2/game2.py
index 18fbc6b..f5d2403 100755
--- a/game2/game2.py
+++ b/game2/game2.py
@@ -148,13 +148,11 @@ class Game2(usmpgames.ApplicationState):
def exiting_state(self, fromStack):
global score
self.next_state().clear_all()
- self.next_state().add_htmltext(
- _(""" <b>Felicidades</b>\n\nHas conseguido %d puntos""") % score,
+ self.next_state().add_text2(
+ _(""" Felicidades\n\nHas conseguido %d puntos""") % score,
color = (0, 255, 0, 0),
pos = (660, 260),
- rectsize = (380, 390),
- fontsize = 22,
- font = "arial");
+ rectsize = (380, 390) );
def loop(self, ms):
global gameOverSound, correctAnswerSound, musicSound
@@ -411,7 +409,7 @@ class Game2(usmpgames.ApplicationState):
surface.blit(sad, rectBunny)
#surface.blit(sad, rectBunny)
score=returnScore()
- drawText(_('RESPUESTA INCORRECTA!'), font, surface, (WINDOWWIDTH / 2.85), (WINDOWHEIGHT / 2.25), TEXTCOLOR)
+ drawText(_('RESPUESTA INCORRECTA!'), font, surface, (WINDOWWIDTH / 4), (WINDOWHEIGHT / 2.25), TEXTCOLOR)
drawText(_('RESPUESTA CORRECTA: '+str(result)), font, surface, (WINDOWWIDTH / 3.8), (WINDOWHEIGHT / 2.25)+50, TEXTCOLOR)
drawText(_('PULSA UNA TECLA'), font, surface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 2.25) + 100, TEXTCOLOR)
@@ -439,7 +437,8 @@ class Game2(usmpgames.ApplicationState):
######################################## methods
#Time Limit
-TIMELIMIT=240.0
+#TIMELIMIT=240.0
+TIMELIMIT=30.0
#print ('time: '+str(TIMESTART))
def compareTime(playTime, gamestate):