Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game2
diff options
context:
space:
mode:
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):