diff --git a/src/gameloop.py b/src/gameloop.py index 4282a1e..0c8fec6 100644 --- a/src/gameloop.py +++ b/src/gameloop.py @@ -42,12 +42,14 @@ def start(self): self._handle_events() if self._score_tracker.game_over(): - self._renderer.show_end_banner(self._score_tracker.current_score) + self._renderer.show_end_banner( + self._score_tracker.current_score) else: if self._bubble.x >= self._window_width + 50: self._bubble = Bubble(self._symbol_tracker) self._bubble.move(1) - self._renderer.redraw(self._bubble, self._score_tracker.current_score) + self._renderer.redraw( + self._bubble, self._score_tracker.current_score) pygame.time.delay(20) diff --git a/src/index.py b/src/index.py index 0b19336..1ec5b07 100644 --- a/src/index.py +++ b/src/index.py @@ -1,9 +1,9 @@ import pygame -from ui.renderer import Renderer -from services.symbol_tracker import SymbolTracker from gameloop import GameLoop +from ui.renderer import Renderer from services.event_queue import EventQueue from services.score_tracker import ScoreTracker +from services.symbol_tracker import SymbolTracker WINDOW_WIDTH = 1200 WINDOW_HEIGHT = 500 diff --git a/src/tests/event_queue_test.py b/src/tests/event_queue_test.py index 5444d90..1c4e1d1 100644 --- a/src/tests/event_queue_test.py +++ b/src/tests/event_queue_test.py @@ -14,7 +14,8 @@ def setUp(self): renderer = Renderer(window, 50, (0, 0, 0)) self.event_queue = EventQueue() symbol_tracker = SymbolTracker() - GameLoop(window, 50, renderer, self.event_queue, score_tracker, symbol_tracker) + GameLoop(window, 50, renderer, self.event_queue, + score_tracker, symbol_tracker) def test_event_queue_getter_returns_data(self): response = self.event_queue.get()