diff options
Diffstat (limited to 'game1/score.py')
-rwxr-xr-x | game1/score.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/game1/score.py b/game1/score.py new file mode 100755 index 0000000..58e239b --- /dev/null +++ b/game1/score.py @@ -0,0 +1,25 @@ +#Actividad Esquiador +#Archivo: score.py +#Descripcion: Clase que maneja el puntaje del juego +# + +import pygame +from pygame import * +from pygame.locals import * +from constants import * +from gettext import gettext as _ +#fuente = pygame.font.Font("./media/fuentes/space age.ttf", 25) + +class Score(): + + def __init__(self, player): + self.player = player + self.font = pygame.font.SysFont("Arial", 50) + pass + + def draw(self, screen): + score = _("PUNTAJE: %05d") % self.player.score + surface = self.font.render(score, 1, (0,0,0)) + rect = surface.get_rect() + screen.blit(surface, rect) + |