diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-24 01:22:39 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-24 01:22:39 +0200 |
commit | cd128f5bc4fae39fb7e77683758d437f64eb4203 (patch) | |
tree | f4f3efbca3e11e7f6fb73a227ad09ef11918ec48 /src/sliceitoff/game/anykey.py | |
parent | 4353670f0cee67550b20dfcfd51b81386372f358 (diff) |
gameover, level x and level up screens
Diffstat (limited to 'src/sliceitoff/game/anykey.py')
-rw-r--r-- | src/sliceitoff/game/anykey.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |