Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game1/score.py
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-10-27 17:40:28 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-10-27 17:40:28 (GMT)
commit0018a9e211ebbe74d371339a70edc0d36c4fc99f (patch)
treeddfd93d0713c615ed70dbf869747b55b94791af8 /game1/score.py
Initial import of game1 and game2 in math quwy
Diffstat (limited to 'game1/score.py')
-rwxr-xr-xgame1/score.py25
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)
+