上传文件至 ''

This commit is contained in:
206530222 2021-06-19 23:19:50 +08:00
parent fa33cc0431
commit e56dd95115
1 changed files with 15 additions and 0 deletions

15
scoreboard.py Normal file
View File

@ -0,0 +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