更新 'scoreboard.py'
This commit is contained in:
parent
1095151039
commit
661861c0ff
|
@ -30,17 +30,9 @@ class Scoreboard:
|
|||
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)
|
||||
|
||||
|
||||
def check_high_score(self):
|
||||
#"""检查是否诞生了新的最高得分"""
|
||||
if self.stats.score > self.stats.high_score:
|
||||
self.stats.high_score = self.stats.score
|
||||
self.prep_score()
|
||||
|
||||
def prep_level(self):
|
||||
#"""将等级转换为渲染的图像"""
|
||||
level_str = str(self.stats.level)
|
||||
|
|
Loading…
Reference in New Issue