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-07 20:34:40 (GMT)
committer drako <drako@drako-desktop.(none)>2010-09-07 20:34:40 (GMT)
commitcb5c00068eeb9a3443fa7ec2ff08d1e9eeb47ecf (patch)
tree6ba295e344dd9cf7250895ef43b68cbdd2be11f0
parent96a3ab919afabae9cf3df8c8dfed7fa8f98ca661 (diff)
just a few things location of some methods
-rwxr-xr-xhighScores.py5
-rwxr-xr-xrunEsquiadorFunc.py12
-rwxr-xr-xscore.dat8
3 files changed, 12 insertions, 13 deletions
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