gameloop1.py 文件源码

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

项目:rapidpythonprogramming 作者: thecount12 项目源码 文件源码
def splash():
    intro=True
    while intro:
        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:
                    intro=False
                if event.key==pygame.K_q:
                    pygame.quit()
                    quit()
        display.fill(white)
        message("Wellcome!!!", black,300,300 )
        message("Press 'c' to continue or 'q' to Quit",black,300,400)
        pygame.display.update()
        clock.tick(15)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号