From 05e8d480b76fc862c0c1fba8f07beab38f9535c3 Mon Sep 17 00:00:00 2001 From: 206530211 <1515969111@qq.com> Date: Tue, 22 Jun 2021 21:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'game=5Ffunctions.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_functions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/game_functions.py b/game_functions.py index 20088b5..fc9cea2 100644 --- a/game_functions.py +++ b/game_functions.py @@ -84,6 +84,14 @@ def check_play_button(ai_settings, screen, stats, sb, play_button, ship, aliens, aliens.empty() bullets.empty() + # 创建一群新的外星人,并让飞船居中 + create_fleet(ai_settings, screen, ship, aliens) + sb.prep_ships() + + # 清空外星人列表和子弹列表 + aliens.empty() + bullets.empty() + # 创建一群新的外星人,并让飞船居中 create_fleet(ai_settings, screen, ship, aliens) ship.center_ship() \ No newline at end of file