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 15:45:47 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-12-25 15:45:47 (GMT)
commitc962744b7ecd6d86001963e2e6dfb31a8eb0fd93 (patch)
treeb5c5aea06d63246960995d711bbac30c2d33f2d8 /conozco.py
parente9604b14c66a9f1ed77f63f03604e9920edaca44 (diff)
basic add
Diffstat (limited to 'conozco.py')
-rwxr-xr-xconozco.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/conozco.py b/conozco.py
index db751d7..9cedfb9 100755
--- a/conozco.py
+++ b/conozco.py
@@ -317,7 +317,8 @@ class Conozco():
del imagen0
return imagen
- def __init__(self):
+ def __init__(self, parent):
+ self.parent = parent
file_activity_info = ConfigParser.ConfigParser()
activity_info_path = os.path.abspath('activity/activity.info')
file_activity_info.read(activity_info_path)
@@ -468,7 +469,7 @@ class Conozco():
x = int(image.get_width() * scale)
y = int(image.get_height() * scale)
self.fondo = pygame.transform.scale(image, (x,y))
-
+ self.pantalla.blit(self.fondo, (shift_x, shift_y))
def principal(self):
"""Este es el loop principal del juego"""
@@ -489,10 +490,10 @@ class Conozco():
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONDOWN:
pos = event.pos
+ self.pantalla.blit(self.simboloCiudad, pos)
+ self.parent._add_coor(pos)
print pos
- if self.fondo is not None:
- self.pantalla.blit(self.fondo, (shift_x, shift_y))
pygame.display.flip()