From 0a2acea2516ff675c857c9220a5c2aa188102c14 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 15 Nov 2021 23:54:25 +0100 Subject: Store the pygame screen instance in the Pause object Signed-off-by: Olivier Gayot --- cameltris/screens/pause.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cameltris/screens/pause.py') 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() -- cgit v1.2.3