更新 'game_functions.py'

This commit is contained in:
206530211 2021-06-20 08:56:14 +08:00
parent 79634f0944
commit 63a9c3d323
1 changed files with 3 additions and 1 deletions

View File

@ -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
ship.moving_right = False
elif event.key == pygame.K_LEFT:
ship.moving_left = False