Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bernabé <laurent.bernabe@gmail.com>2013-09-27 10:28:29 (GMT)
committer Laurent Bernabé <laurent.bernabe@gmail.com>2013-09-27 10:28:29 (GMT)
commitef76a36a1120dfd9433d1b5cd2f8337246dc178e (patch)
tree7d22157268175317b60cdc82fcd5c98963538d93
parent7c51b37942cfd6f83c61a03ea7f4d26d75a90e4c (diff)
As levels 3 produces bigger balls, the program did not manage to place them without collision. So I reduced the font size for their text, and therefore, this bug is fixed.
-rw-r--r--main_game.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main_game.py b/main_game.py
index f2ffe8e..3dc9426 100644
--- a/main_game.py
+++ b/main_game.py
@@ -67,7 +67,7 @@ class Game:
else:
self._size = self._screen.get_size()
- self._game_font = pygame.font.Font(None, 40)
+ self._game_font = pygame.font.Font(None, 34)
self._menu_font = pygame.font.Font(None, 90)
self._end_font = pygame.font.Font(None, 40)
self._END_TXT_POS = (int(self._size[0] / 8)), int(self._size[1] / 2.6)
@@ -88,7 +88,7 @@ class Game:
[OperationConfig(OPER_ADD, 999, 999, 1000),
OperationConfig(OPER_MUL, 99, 99, 1000),
OperationConfig(OPER_SUB, 1000, 998),
- OperationConfig(OPER_DIV, 1000, 99, 99)]
+ OperationConfig(OPER_DIV, 1000, 99)]
]
self._MENU_LEVELS_RECT_X = (self._size[0] -
self._MENU_LEVELS_RECTS_WIDTH) / 2
@@ -197,6 +197,7 @@ class Game:
result_bar.set_result(target_result)
balls_collision.place_balls(the_balls, balls_area)
+
show_status = True
pygame.time.set_timer(USEREVENT + 2, 1000)