diff options
-rwxr-xr-x | finishGame.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/finishGame.py b/finishGame.py index 9fd3f8a..5f18d2e 100755 --- a/finishGame.py +++ b/finishGame.py @@ -1,20 +1,30 @@ #!/usr/bin/env python #-*- coding:utf-8 -*- -import pygame,sys +import pygame,sys,impares,pares import txtlib from pygame.locals import * from constants import * +from pares import * +from impares import * -def finishing(): +def finishing(score,mod): pygame.init() screen = pygame.display.set_mode(screen_size) - + m="" + if mod =="pares": + m = "pares" + + else: + m = "impares" + + + text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), 'freesans') text.text = '''Actividad Esquiador terminada! - \nModalidad: - \nPuntaje: + \nModalidad: \t'''+m+''' + \nPuntaje:\t'''+str(score)+''' \nFelicitaciones ! ! ! ! ! \nEste juego permite diferenciar entre los diferentes tipos de numeros. \nGracias por jugarlo, y buena suerte! |