Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MAFH2/Map.py
diff options
context:
space:
mode:
Diffstat (limited to 'MAFH2/Map.py')
-rw-r--r--MAFH2/Map.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/MAFH2/Map.py b/MAFH2/Map.py
index c0d8afe..3d12eab 100644
--- a/MAFH2/Map.py
+++ b/MAFH2/Map.py
@@ -51,7 +51,7 @@ class Map(GameEngineElement):
self.add_to_engine() #Adds itself and all callbacks to the engine
self.myDrawableObject = DrawableObject([pygame.Surface((0,0))], '')
- self.game_engine.get_scene().addObject(selfmyDrawableObject)
+ self.game_engine.get_scene().addObject(self.myDrawableObject)
def event_handler(self, event):
if event.type == pygame.KEYDOWN:
@@ -109,6 +109,9 @@ class Map(GameEngineElement):
mini_map = pygame.Surface( (200,200) )
mini_map.blit( mapView, curSect )
+
+ self.myDrawableObject.repopulateImages([mini_map])
+ self.myDrawableObject.setPosition(0,700)
screen.fill(0,map_area,0)
screen.blit(mini_map, map_area)