更新 'scoreboard.py'

This commit is contained in:
206530221 2021-06-22 22:13:27 +08:00
parent 2026ae6646
commit 0f7a99b02b
1 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@ class Scoreboard():
self.level_rect.right = self.score_rect.right
self.level_rect.top = self.score_rect.bottom + 10
def prep_ships(self):
"""显示还余下多少艘飞船"""
self.ships = Group()
for ship_number in range(self.stats.ships_left):
def prep_ships(self):
"""显示还余下多少艘飞船"""
self.ships = Group()
for ship_number in range(self.stats.ships_left):
ship = Ship(self.ai_settings, self.screen)
ship.rect.x = 10 + ship_number * ship.rect.width
ship.rect.y = 10