From eba1989cfa57df275cd6c74825f21eda9cfa6a24 Mon Sep 17 00:00:00 2001 From: Mateu Batle Date: Thu, 18 Nov 2010 15:06:53 +0000 Subject: Fixed fonts, colors, texts, times --- (limited to 'game1') diff --git a/game1/collectgame.py b/game1/collectgame.py index 76cdaff..50ba314 100755 --- a/game1/collectgame.py +++ b/game1/collectgame.py @@ -14,7 +14,7 @@ class CollectGame(usmpgames.ApplicationState): def __init__(self, game_mode, next_state = None, background = None): usmpgames.ApplicationState.__init__(self, next_state, background) self.game_mode = game_mode - self.font = pygame.font.SysFont("Arial", 50) + self.font = pygame.font.SysFont(None, 80) def entering_state(self, fromStack): usmpgames.ApplicationState.entering_state(self, fromStack) @@ -31,7 +31,7 @@ class CollectGame(usmpgames.ApplicationState): self.next_state().add_text2( _(""" %s\n\nHas conseguido %d puntos.\n\nHas acertado %d veces.\n\nHas realizado %d errores.""") % (self.game_over_message(), self.player.score, self.player.num_ok, self.player.num_error), - color = (0, 255, 0, 0), + color = (0, 0, 0, 0), pos = (660, 260), rectsize = (380, 390)); usmpgames.ApplicationState.exiting_state(self, fromStack) @@ -73,9 +73,9 @@ class CollectGame(usmpgames.ApplicationState): self.player.draw(self.screen()) self.score.draw(self.screen()) if self.game_mode == "pares": - self.drawText("A POR LOS PARES!", screen_size[0] / 2, 0, (0,0,0)) + self.drawText("NUMEROS PARES", screen_size[0] / 2, 0, (0,0,0)) else: - self.drawText("A POR LOS IMPARES!", screen_size[0] / 2, 0, (0,0,0)) + self.drawText("NUMEROS IMPARES", screen_size[0] / 2, 0, (0,0,0)) def drawText(self, text, x, y, color): text = self.font.render(text, 1, color) diff --git a/game1/score.py b/game1/score.py index 1c2580b..7432612 100755 --- a/game1/score.py +++ b/game1/score.py @@ -14,7 +14,7 @@ class Score(): def __init__(self, player): self.player = player - self.font = pygame.font.SysFont("Arial", 50) + self.font = pygame.font.SysFont(None, 80) def draw(self, screen): score = _("PUNTAJE: %05d") % self.player.score -- cgit v0.9.1