Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Meyer <knny.myer@gmail.com>2011-06-03 22:46:36 (GMT)
committer Kenny Meyer <knny.myer@gmail.com>2011-06-03 22:46:36 (GMT)
commita6143d7151ece71d30214a63c1339201caa1c0a9 (patch)
tree91e0c0727c771bc021cc73357e3e6bd3bb4d0d08
parent4100f5697c146d540350f7271c84db49195cfa92 (diff)
Colores mas paraguayos :)
-rwxr-xr-xconozcopy.py75
1 files changed, 44 insertions, 31 deletions
diff --git a/conozcopy.py b/conozcopy.py
index cfee76c..9e10cdb 100755
--- a/conozcopy.py
+++ b/conozcopy.py
@@ -87,12 +87,6 @@ ARCHIVOPRESENTACION = "presentacion.txt"
ARCHIVONOMBRE = "nombre.txt"
CAMINOIMAGENES = "imagenes"
CAMINOSONIDOS = "sonidos"
-COLORNOMBREDEPTO = (200,60,60)
-COLORNOMBRECAPITAL = (10,10,10)
-COLORNOMBRERIO = (10,10,10)
-COLORNOMBREELEVACION = (10,10,10)
-COLORPREGUNTAS = (80,80,155)
-COLORPANEL = (156,158,172)
TOTALAVANCE = 7
EVENTORESPUESTA = pygame.USEREVENT+1
TIEMPORESPUESTA = 2300
@@ -101,6 +95,18 @@ TIEMPODESPEGUE = 40
EVENTOREFRESCO = EVENTODESPEGUE+1
TIEMPOREFRESCO = 250
+# Colores
+COLORNOMBREDEPTO = (0,60,60)
+COLORNOMBRECAPITAL = (10,10,10)
+COLORNOMBRERIO = (10,10,10)
+COLORNOMBREELEVACION = (10,10,10)
+COLORPREGUNTAS = (80,80,155)
+COLORPANEL = (156,158,172)
+COLOR_BLANCO = (255, 255, 255)
+COLOR_ROJO_MENOS = (210, 76, 91)
+COLOR_ROJO_PY = (206, 17, 38) # El rojo oficial de la bandera paraguaya
+COLOR_AZUL_PY = (0, 56, 168) # El azul oficial de la bandera paraguaya
+
# variables globales para adaptar la pantalla a distintas resoluciones
scale = 1
shift_x = 0
@@ -504,7 +510,7 @@ class ConozcoPy():
self.pantallaTemp = pygame.Surface(
(self.anchoPantalla,self.altoPantalla))
self.pantallaTemp.blit(self.pantalla,(0,0))
- self.pantalla.fill((0,0,0))
+ self.pantalla.fill((255, 255, 255)) # Rellenar fondo
self.pantalla.blit(self.terron,
(int(20*scale+shift_x),
int(20*scale+shift_y)))
@@ -512,7 +518,7 @@ class ConozcoPy():
self.fuente40,
(int(600*scale+shift_x),
int(100*scale+shift_y)),
- (255,255,255))
+ (0, 0, 0))
# falta sanitizar acceso a archivo
f = open(os.path.join(CAMINORECURSOS,
CAMINOCOMUN,
@@ -550,12 +556,15 @@ class ConozcoPy():
def pantallaInicial(self):
"""Pantalla con el menu principal del juego"""
global scale, shift_x, shift_y
- self.pantalla.fill((0,0,0))
+ self.pantalla.fill((255, 255, 255))
+ self.pantalla.blit(self.bicentenario,
+ (int(20*scale+shift_x),
+ int(20*scale+shift_y)))
self.mostrarTexto("Conozco Paraguay",
self.fuente48,
(int(600*scale+shift_x),
int(80*scale+shift_y)),
- (255,255,255))
+ (0,0,0))
self.mostrarTexto("Has elegido el mapa de "+\
self.listaNombreDirectorios\
[self.indiceDirectorioActual],
@@ -568,7 +577,7 @@ class ConozcoPy():
(200,100,100))
yLista = int(300*scale+shift_y)
for n in self.listaNiveles:
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill(COLOR_ROJO_PY,
(int(10*scale+shift_x),
yLista-int(24*scale),
int(590*scale),
@@ -576,7 +585,7 @@ class ConozcoPy():
self.mostrarTexto(n.nombre,
self.fuente40,
(int(300*scale+shift_x), yLista),
- (200,100,100))
+ COLOR_BLANCO)
yLista += int(50*scale)
self.mostrarTexto("Exploro",
self.fuente48,
@@ -584,7 +593,7 @@ class ConozcoPy():
(100,100,200))
yLista = int(300*scale+shift_y)
for n in self.listaExploraciones:
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill(COLOR_ROJO_MENOS,
(int(610*scale+shift_x),
yLista-int(24*scale),
int(590*scale),
@@ -592,24 +601,24 @@ class ConozcoPy():
self.mostrarTexto(n.nombre,
self.fuente40,
(int(900*scale+shift_x),yLista),
- (100,100,200))
+ COLOR_BLANCO)
yLista += int(50*scale)
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill(COLOR_AZUL_PY,
(int(10*scale+shift_x),
int(801*scale+shift_y),
int(590*scale),int(48*scale)))
self.mostrarTexto("Sobre este juego",
self.fuente40,
(int(300*scale+shift_x),int(825*scale+shift_y)),
- (100,200,100))
- self.pantalla.fill((20,20,20),
+ COLOR_BLANCO)
+ self.pantalla.fill(COLOR_AZUL_PY,
(int(610*scale+shift_x),
int(801*scale+shift_y),
int(590*scale),int(48*scale)))
self.mostrarTexto("Volver",
self.fuente40,
(int(900*scale+shift_x),int(825*scale+shift_y)),
- (100,200,100))
+ COLOR_BLANCO)
pygame.display.flip()
while 1:
for event in wait_events():
@@ -657,11 +666,14 @@ class ConozcoPy():
def pantallaDirectorios(self):
"""Pantalla con el menu de directorios"""
global scale, shift_x, shift_y
- self.pantalla.fill((0,0,0))
+ self.pantalla.fill((255, 255, 255))
+ self.pantalla.blit(self.bicentenario,
+ (int(20*scale+shift_x),
+ int(20*scale+shift_y)))
self.mostrarTexto("Conozco Paraguay",
self.fuente48,
(int(600*scale+shift_x),int(80*scale+shift_y)),
- (255,255,255))
+ (0, 0, 0))
self.mostrarTexto("Elige el mapa a utilizar",
self.fuente40,
(int(600*scale+shift_x),int(140*scale+shift_y)),
@@ -670,7 +682,7 @@ class ConozcoPy():
paginaDirectorios = self.paginaDir
while 1:
yLista = int(200*scale+shift_y)
- self.pantalla.fill((0,0,0),
+ self.pantalla.fill((255, 255, 255),
(int(shift_x),yLista-int(24*scale),
int(1200*scale),int(600*scale)))
if paginaDirectorios == 0:
@@ -690,13 +702,13 @@ class ConozcoPy():
indiceDir = paginaDirectorios * 20
terminar = False
while not terminar:
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill(COLOR_ROJO_PY,
(int(10*scale+shift_x),yLista-int(24*scale),
int(590*scale),int(48*scale)))
self.mostrarTexto(self.listaNombreDirectorios[indiceDir],
self.fuente40,
(int(300*scale+shift_x),yLista),
- (200,100,100))
+ COLOR_BLANCO)
yLista += int(50*scale)
indiceDir = indiceDir + 1
if indiceDir == nDirectorios or \
@@ -708,14 +720,14 @@ class ConozcoPy():
yLista = int(250*scale+shift_y)
terminar = False
while not terminar:
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill((55,55,255),
(int(610*scale+shift_x),
yLista-int(24*scale),
int(590*scale),int(48*scale)))
self.mostrarTexto(self.listaNombreDirectorios[indiceDir],
self.fuente40,
(int(900*scale+shift_x),yLista),
- (200,100,100))
+ COLOR_BLANCO)
yLista += int(50*scale)
indiceDir = indiceDir + 1
if indiceDir == nDirectorios or \
@@ -723,14 +735,14 @@ class ConozcoPy():
terminar = True
if indiceDir == paginaDirectorios * 20 + 20:
if indiceDir < nDirectorios:
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill((55,55,255),
(int(610*scale+shift_x),
yLista-int(24*scale),
int(590*scale),int(48*scale)))
self.mostrarTexto("Pagina siguiente >>>",
self.fuente40,
(int(900*scale+shift_x),yLista),
- (100,100,200))
+ COLOR_BLANCO)
paginaSiguienteActiva = True
nDirectoriosCol2 = 10
else:
@@ -738,20 +750,20 @@ class ConozcoPy():
else:
nDirectoriosCol1 = indiceDir - paginaDirectorios * 20
nDirectoriosCol2 = 0
- self.pantalla.fill((20,20,20),
+ self.pantalla.fill(COLOR_AZUL_PY,
(int(10*scale+shift_x),int(801*scale+shift_y),
int(590*scale),int(48*scale)))
self.mostrarTexto("Sobre este juego",
self.fuente40,
(int(300*scale+shift_x),int(825*scale+shift_y)),
- (100,200,100))
- self.pantalla.fill((20,20,20),
+ COLOR_BLANCO)
+ self.pantalla.fill(COLOR_AZUL_PY,
(int(610*scale+shift_x),int(801*scale+shift_y),
int(590*scale),int(48*scale)))
self.mostrarTexto("Salir",
self.fuente40,
(int(900*scale+shift_x),int(825*scale+shift_y)),
- (100,200,100))
+ COLOR_BLANCO)
pygame.display.flip()
cambiarPagina = False
while not cambiarPagina:
@@ -912,6 +924,7 @@ class ConozcoPy():
self.simboloCapital = self.cargarImagen("capital.png")
self.simboloCiudad = self.cargarImagen("ciudad.png")
self.simboloCerro = self.cargarImagen("cerro.png")
+ self.bicentenario = self.cargarImagen("bicentenario.png")
# cargar sonidos
self.camino_sonidos = os.path.join(CAMINORECURSOS,
CAMINOCOMUN,