更新 'scoreboard.py'
This commit is contained in:
parent
2026ae6646
commit
0f7a99b02b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue