From cb5c00068eeb9a3443fa7ec2ff08d1e9eeb47ecf Mon Sep 17 00:00:00 2001 From: drako Date: Tue, 07 Sep 2010 20:34:40 +0000 Subject: just a few things location of some methods --- diff --git a/highScores.py b/highScores.py index 61fc034..97bfecc 100755 --- a/highScores.py +++ b/highScores.py @@ -1,10 +1,9 @@ #!/usr/bin/env python #-*- coding:utf-8 -*- import os,sys -import pygame, runEsquiador +import pygame import txtlib from pygame.locals import * -from runEsquiador import * from constants import * class HighScore(): @@ -53,7 +52,7 @@ class HighScore(): if newstuffs < 65: newstuffs = 90 return chr(newstuffs) - + def __init__(self): self.thefont = pygame.font.Font(os.path.join('fonts', 'ice_sticks.ttf'), 18) self.titlefont = pygame.font.Font(os.path.join('fonts', 'ice_sticks.ttf'), 35) diff --git a/runEsquiadorFunc.py b/runEsquiadorFunc.py index 9b98dd7..b40ec43 100755 --- a/runEsquiadorFunc.py +++ b/runEsquiadorFunc.py @@ -8,11 +8,15 @@ from help import * from highScores import * from constants import * -LOG_FILENAME='Esquiador.log' +highScore = HighScore() + +def estadoJugador(self, estado): + self.jugador=estado + +LOG_FILENAME='Esquiador.log' log = logging.getLogger( 'EsquiadorRun' ) #log.setLevel( logging.DEBUG ) -highScore = HighScore() screen = pygame.display.set_mode(screen_size) bg = imagenFondo; @@ -24,12 +28,8 @@ font = './fonts/ice_sticks.ttf' just = True pos = ('center','center') -def estadoJugador(self, estado): - self.jugador=estado - while pygame.event.poll().type != pygame.QUIT: screen.blit(bg, (0,0) ) - selection = jmenu.run(['Numeros pares','Numeros impares','Puntajes mas altos' ,'Ayuda','Acerca de','Salir'],color,42,font=font,light=10,justify=just,pos=pos) if selection == 'Numeros pares': just = True diff --git a/score.dat b/score.dat index 243fca8..c95de5c 100755 --- a/score.dat +++ b/score.dat @@ -1,4 +1,4 @@ -Mateu 10000 -Ricardo 9000 -Aldo 3000 -Eduardo 20000 +EDUARDO 20000 +MATEU 10000 +RICARDO 9000 +ALDO 3000 -- cgit v0.9.1