diff options
-rw-r--r-- | cameltris/screens/pause.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cameltris/screens/pause.py b/cameltris/screens/pause.py index c8e6c69..0963f45 100644 --- a/cameltris/screens/pause.py +++ b/cameltris/screens/pause.py @@ -1,3 +1,5 @@ +""" Module that defines the pause screen class """ + import contextlib import sys from typing import Callable, NoReturn @@ -10,11 +12,13 @@ from ..misc import UnPause def handle_input_pressed(controller: Controller, event: pygame.event.Event): + """ Function that checks the input pressed and triggers the relevant action """ if controller.get_input_down(event) == Input.PAUSE: raise UnPause() class Pause(Screen): + """ Represents the pause screen """ def __init__(self, screen: pygame.surface.Surface): self.event_handler: dict[int, Callable[[pygame.event.Event], None]] = {} |