Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/conozco.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-12-25 16:12:52 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-12-25 16:12:52 (GMT)
commit0f295a9a5f6d3e7913a73cb365a161c3bef4520a (patch)
tree80530dd05dd251c51659200cfcca63b682b08cf0 /conozco.py
parentc962744b7ecd6d86001963e2e6dfb31a8eb0fd93 (diff)
needs a bit of work
Diffstat (limited to 'conozco.py')
-rwxr-xr-xconozco.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/conozco.py b/conozco.py
index 9cedfb9..378fbd4 100755
--- a/conozco.py
+++ b/conozco.py
@@ -471,6 +471,19 @@ class Conozco():
self.fondo = pygame.transform.scale(image, (x,y))
self.pantalla.blit(self.fondo, (shift_x, shift_y))
+ def showName(self, text, pos, font, color=(0,0,0)):
+ t = font.render(text, 1, color)
+ self.pantalla.blit(t, pos)
+
+ def update_points(self, data):
+ self.pantalla.blit(self.fondo, (shift_x, shift_y))
+ for p in data:
+ info = data[p]
+ name = info[0]
+ pos = info[1]
+ self.pantalla.blit(self.simboloCiudad, pos)
+ self.showName(name, pos, self.fuente9)
+
def principal(self):
"""Este es el loop principal del juego"""
global scale, shift_x, shift_y