Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hockey <Blitzkev@gmail.com>2010-08-05 01:38:52 (GMT)
committer Kevin Hockey <Blitzkev@gmail.com>2010-08-05 01:38:52 (GMT)
commita470863db9839b580fb0a0aedfbd7ef22032fc53 (patch)
tree49ee0a52ea08d94f3c9ed30c938fd7e9006ff5fa
parentda5c5ca0ff40ef24cfcd7d44fa833d918effa7b4 (diff)
check to see if the minimap is indeed showing correctly
-rw-r--r--MAFH2/Map.py5
-rw-r--r--MAFH2/TermBox.py2
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))