更新 'scoreboard.py'
This commit is contained in:
parent
894b0298b2
commit
22675394ae
|
@ -66,4 +66,11 @@ class Scoreboard():
|
|||
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)
|
||||
self.screen.blit(self.high_score_image, self.high_score_rect)
|
||||
self.screen.blit(self.level_image, self.level_rect)
|
||||
# 绘制飞船
|
||||
self.ships.draw(self.screen)
|
Loading…
Reference in New Issue