上传文件至 ''
This commit is contained in:
parent
fa33cc0431
commit
e56dd95115
|
@ -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
|
Loading…
Reference in New Issue