graphics.py 文件源码

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

项目:pool 作者: max-kov 项目源码 文件源码
def __init__(self):
        if config.fullscreen:
            config.set_max_resolution()
            self.surface = pygame.display.set_mode(config.resolution, pygame.FULLSCREEN)
        else:
            self.surface = pygame.display.set_mode(config.resolution)
        self.background = pygame.Surface(self.surface.get_size())
        self.background = self.background.convert()
        self.background.fill(config.table_color)
        self.surface.blit(self.background, (0, 0))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号