更新 'scoreboard.py'

This commit is contained in:
206530221 2021-06-23 08:19:39 +08:00
parent 894b0298b2
commit 22675394ae
1 changed files with 8 additions and 1 deletions

View File

@ -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)