更新 'scoreboard.py'

This commit is contained in:
206530211 2021-06-24 07:20:22 +08:00
parent 993900f10d
commit b766cbc0fb
1 changed files with 2 additions and 2 deletions

View File

@ -59,14 +59,14 @@ class Scoreboard():
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):
ship = Ship(self.ai_settings, self.screen)
ship.rect.x = 10 + ship_number * ship.rect.width
ship.rect.y = 10
self.ships.add(ship)
def show_score(self):
"""在屏幕上显示飞船和得分"""
self.screen.blit(self.score_image, self.score_rect)