主程序
This commit is contained in:
parent
d8a21d2d5b
commit
ce0a5f8101
|
@ -29,8 +29,8 @@ def run_game():
|
||||||
gf.create_fleet(ai_settings, screen, ship, aliens)
|
gf.create_fleet(ai_settings, screen, ship, aliens)
|
||||||
|
|
||||||
# 创建存储游戏统计信息的实例,并创建记分牌
|
# 创建存储游戏统计信息的实例,并创建记分牌
|
||||||
stats = GameStats(ai_settings)
|
stats = GameStats(ai_settings) # 数据统计
|
||||||
sb = Scoreboard(ai_settings, screen, stats)
|
sb = Scoreboard(ai_settings, screen, stats) # 记分牌
|
||||||
|
|
||||||
# 创建Play按钮
|
# 创建Play按钮
|
||||||
play_button = Play_Button(ai_settings, screen, "play")
|
play_button = Play_Button(ai_settings, screen, "play")
|
||||||
|
|
Loading…
Reference in New Issue