12.3.1?????????alien_invasion.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:Pythonlearn 作者: godzoco 项目源码 文件源码
def run_game():
# ??????????????
    pygame.init()
    #???init ?????

    #screen = pygame.display.set_mode((1200, 800))
    screen = pygame.display.set_mode((1200, 800))
    pygame.display.set_caption("?????")
    #???? ?????
    #pygame.display.set_caption("Alien Invasion")

    #??? ?? ??? ????surface,????????surface

# ????????
    #???????,??????? ?? ???? ?????? ?????
    while True:
# ?????????
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                #event.type == pygame.QUIT: ?????????
                sys.exit()
# ??????????
    #???????????? ????????? ???? ??
        pygame.display.flip()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号