Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/finishGame.py
diff options
context:
space:
mode:
Diffstat (limited to 'finishGame.py')
-rwxr-xr-xfinishGame.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/finishGame.py b/finishGame.py
new file mode 100755
index 0000000..620a51d
--- /dev/null
+++ b/finishGame.py
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import pygame,sys, runEsquiador
+import txtlib
+from pygame.locals import *
+from runEsquiador import *
+from constants import *
+
+def finishing():
+ pygame.init()
+
+ screen = pygame.display.set_mode(screen_size)
+
+ text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), 'freesans')
+ text.text = '''Actividad Esquiador terminada!
+ \nModalidad:
+ \nPuntaje:
+ \nFelicitaciones ! ! ! ! !
+ \nEste juego permite diferenciar entre los diferentes tipos de numeros.
+ \nGracias por jugarlo, y buena suerte!
+ '''
+
+ text.add_style(0, 30, txtlib.FONT, './fonts/ice_sticks.ttf')
+ text.add_style(0, 30, txtlib.SIZE,(screen_size[0]*25)/800)
+ text.add_style(31, 82, txtlib.FONT, './fonts/ice_sticks.ttf')
+ text.add_style(31, 82, txtlib.SIZE,(screen_size[0]*25)/900)
+ text.add_style(90, 155, txtlib.ITALIC)
+ text.add_style(90, 155, txtlib.BOLD)
+
+
+
+ text.update()
+
+ screen.blit(text.area, (100, 100))
+ pygame.display.flip()
+
+ while True:
+
+ for event in pygame.event.get():
+ if event.type == pygame.QUIT:
+ exit(0)
+ if event.type == KEYDOWN:
+ if event.key == K_ESCAPE:
+ # Cierra el juego presionando escape
+ #exit(0)
+ #pygame.display.flip()
+ runEsquiador.main()