更新 'alien_invasion,py'

This commit is contained in:
206530211 2021-06-17 21:05:57 +08:00
parent c3f56588db
commit 37a2b43fe9
1 changed files with 4 additions and 1 deletions

View File

@ -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")