更新 'scoreboard.py'
This commit is contained in:
parent
4c95e8b1d1
commit
db52af06a5
|
@ -1,14 +1,10 @@
|
||||||
import pygame.font
|
import pygame.font
|
||||||
from pygame.sprite import Group
|
|
||||||
|
|
||||||
from ship import Ship
|
|
||||||
|
|
||||||
class Scoreboard:
|
class Scoreboard:
|
||||||
#"""显示得分信息的类"""
|
#"""显示得分信息的类"""
|
||||||
|
|
||||||
def __init__(self, ai_game):
|
def __init__(self, ai_game):
|
||||||
#"""初始化显示得分涉及的属性"""
|
#"""初始化显示得分涉及的属性"""
|
||||||
self.ai_game = ai_game
|
|
||||||
self.screen = ai_game.screen
|
self.screen = ai_game.screen
|
||||||
self.screen_rect = self.screen.get_rect()
|
self.screen_rect = self.screen.get_rect()
|
||||||
self.settings = ai_game.settings
|
self.settings = ai_game.settings
|
||||||
|
|
Loading…
Reference in New Issue