更新 'game_functions.py'
This commit is contained in:
parent
05e8d480b7
commit
75fb2a9edc
|
@ -92,6 +92,15 @@ def check_play_button(ai_settings, screen, stats, sb, play_button, ship, aliens,
|
|||
aliens.empty()
|
||||
bullets.empty()
|
||||
|
||||
# 清空外星人列表和子弹列表
|
||||
aliens.empty()
|
||||
bullets.empty()
|
||||
|
||||
# 创建一群新的外星人,并让飞船居中
|
||||
create_fleet(ai_settings, screen, ship, aliens)
|
||||
ship.center_ship()
|
||||
ship.center_ship()
|
||||
|
||||
def update_bullets(ai_settings, screen, stats, sb, ship, aliens, bullets):
|
||||
"""更新子弹的位置,并删除已消失的子弹"""
|
||||
# 更新子弹的位置
|
||||
bullets.update()
|
Loading…
Reference in New Issue