From a470863db9839b580fb0a0aedfbd7ef22032fc53 Mon Sep 17 00:00:00 2001 From: Kevin Hockey Date: Thu, 05 Aug 2010 01:38:52 +0000 Subject: check to see if the minimap is indeed showing correctly --- 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)) -- cgit v0.9.1