Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrako <drako@drako-desktop.(none)>2010-09-08 20:43:39 (GMT)
committer drako <drako@drako-desktop.(none)>2010-09-08 20:43:39 (GMT)
commit6bd19351a4ebba1bd0253805aef45836cf108edd (patch)
treed0cd14f568e0e67463c9038ed8134de403d151e8
parentf2e13f1df02ac66bd73163697d5e8cea9a2be5fa (diff)
now it shows the mode of gameplay and the score you have won during the game
-rwxr-xr-xfinishGame.py20
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!