更新 'scoreboard.py'
This commit is contained in:
parent
993900f10d
commit
b766cbc0fb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue