diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-12-25 16:12:52 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-12-25 16:12:52 (GMT) |
commit | 0f295a9a5f6d3e7913a73cb365a161c3bef4520a (patch) | |
tree | 80530dd05dd251c51659200cfcca63b682b08cf0 /conozco.py | |
parent | c962744b7ecd6d86001963e2e6dfb31a8eb0fd93 (diff) |
needs a bit of work
Diffstat (limited to 'conozco.py')
-rwxr-xr-x | conozco.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |