diff --git a/game_functions.py b/game_functions.py index ac9e082..0ec55de 100644 --- a/game_functions.py +++ b/game_functions.py @@ -34,4 +34,6 @@ def fire_bullet(ai_settings, screen, ship, bullets): def check_keyup_events(event, ship): """响应松开""" if event.key == pygame.K_RIGHT: - ship.moving_right = False \ No newline at end of file + ship.moving_right = False + elif event.key == pygame.K_LEFT: + ship.moving_left = False \ No newline at end of file