创建得分Score类

This commit is contained in:
206530335 2021-06-15 20:53:16 +08:00
parent 116d7c6e1f
commit 54965ded2b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Scoreboard():
self.score_image_rect = self.score_image.get_rect()
self.score_image_rect.right = self.screen_rect.right - 20
self.score_image_rect.top = 20
def prep_high_score(self):
def prep_high_score(self):
"""将最高得分转换为一幅渲染的图像"""
high_round_score = round(self.game_stats.high_score, -1) # 使得分为10的倍数 -1----10的倍数 -2--100的倍数 -3--1000的倍数
high_score_str = "Mscore:" + "{:,}".format(high_round_score)