From 4c95e8b1d1c313c4f214563da33ba1f472e5372a Mon Sep 17 00:00:00 2001 From: 206530222 <2748970477@qq.com> Date: Sat, 19 Jun 2021 23:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'scoreboard.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scoreboard.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/scoreboard.py b/scoreboard.py index dd370ee..6d298a8 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -1,15 +1,15 @@ -import pygame.font -from pygame.sprite import Group - -from ship import Ship - -class Scoreboard: - """显示得分信息的类""" - - def __init__(self, ai_game): - """初始化显示得分涉及的属性""" - self.ai_game = ai_game - self.screen = ai_game.screen - self.screen_rect = self.screen.get_rect() - self.settings = ai_game.settings - self.stats = ai_game.stats +import pygame.font +from pygame.sprite import Group + +from ship import Ship + +class Scoreboard: + #"""显示得分信息的类""" + + def __init__(self, ai_game): + #"""初始化显示得分涉及的属性""" + self.ai_game = ai_game + self.screen = ai_game.screen + self.screen_rect = self.screen.get_rect() + self.settings = ai_game.settings + self.stats = ai_game.stats