更新 'alien_invasion,py'
This commit is contained in:
parent
c3f56588db
commit
37a2b43fe9
|
@ -12,4 +12,7 @@ import game_functions as gf
|
||||||
def run_game():
|
def run_game():
|
||||||
# 初始化pygame、设置和屏幕对象
|
# 初始化pygame、设置和屏幕对象
|
||||||
pygame.init()
|
pygame.init()
|
||||||
ai_settings = Settings()
|
ai_settings = Settings()
|
||||||
|
screen = pygame.display.set_mode(
|
||||||
|
(ai_settings.screen_width, ai_settings.screen_height))
|
||||||
|
pygame.display.set_caption("Alien Invasion")
|
||||||
|
|
Loading…
Reference in New Issue