tank-game.py 文件源码

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

项目:pygame-robotics 作者: ioarun 项目源码 文件源码
def pause():
    paused = True
    message_to_screen("Paused",
        black,
        -100,
        size="large")
    message_to_screen("Press C to continue or Q to continue.",
        black,
        25)
    pygame.display.update()
    while paused:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                quit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_c:
                    paused = False

                elif event.key == pygame.K_q:
                    pygame.quit()
                    quit()

        # gameDisplay.fill(white)

        clock.tick(5)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号