diff options
Diffstat (limited to 'src/splitscreen_duo/games/pong.py')
| -rw-r--r-- | src/splitscreen_duo/games/pong.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/splitscreen_duo/games/pong.py b/src/splitscreen_duo/games/pong.py index 464e529..0c0df84 100644 --- a/src/splitscreen_duo/games/pong.py +++ b/src/splitscreen_duo/games/pong.py @@ -169,11 +169,11 @@ class Pong(GameBase): if result is not None: return result - elif event.type == pygame.KEYDOWN: - if action == "LEFT": - self.move_player_paddle(-PADDLE_SPEED) - elif action == "RIGHT": - self.move_player_paddle(PADDLE_SPEED) + + if action == "LEFT": + self.move_player_paddle(-PADDLE_SPEED) + elif action == "RIGHT": + self.move_player_paddle(PADDLE_SPEED) keys = pygame.key.get_pressed() |