diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-15 23:54:25 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-15 23:54:25 +0100 |
commit | 0a2acea2516ff675c857c9220a5c2aa188102c14 (patch) | |
tree | 222cf127ad10bffa8aa989d3d528963d6f4091b9 | |
parent | 61154ffeb9d3f064bad20f744d638ba2f851411c (diff) |
Store the pygame screen instance in the Pause object
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | cameltris/screens/pause.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cameltris/screens/pause.py b/cameltris/screens/pause.py index 0963f45..4f9a515 100644 --- a/cameltris/screens/pause.py +++ b/cameltris/screens/pause.py @@ -21,6 +21,7 @@ class Pause(Screen): """ Represents the pause screen """ def __init__(self, screen: pygame.surface.Surface): self.event_handler: dict[int, Callable[[pygame.event.Event], None]] = {} + self.screen = screen def exit_(_) -> NoReturn: sys.exit() |