diff options
-rw-r--r-- | MAFH2/Map.py | 5 | ||||
-rw-r--r-- | MAFH2/TermBox.py | 2 |
2 files changed, 5 insertions, 2 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)
diff --git a/MAFH2/TermBox.py b/MAFH2/TermBox.py index 907a951..c511e12 100644 --- a/MAFH2/TermBox.py +++ b/MAFH2/TermBox.py @@ -13,7 +13,7 @@ class TermBox(GameEngineElement): surf.fill([0,0,0]) self.box = DrawableObject([surf],"") self.box.setPosition(int(x),int(y)) - self.font = pygame.font.Font(None, 20) + self.font = pygame.font.Font(None, 28) self.__lines = [] for i in range(lines): self.__lines.append(DrawableFontObject('', self.font)) |