From cd128f5bc4fae39fb7e77683758d437f64eb4203 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sun, 24 Mar 2024 01:22:39 +0200 Subject: gameover, level x and level up screens --- src/sliceitoff/game/anykey.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/sliceitoff/game/anykey.py (limited to 'src/sliceitoff/game/anykey.py') diff --git a/src/sliceitoff/game/anykey.py b/src/sliceitoff/game/anykey.py new file mode 100644 index 0000000..6fd48a2 --- /dev/null +++ b/src/sliceitoff/game/anykey.py @@ -0,0 +1,7 @@ +import pygame + +def anykey(): + for event in pygame.event.get(): + if event.type in (pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN, pygame.QUIT): + return True + return False -- cgit v1.2.3