blob: 151bb112fa3d4374c628c2fc89715469c2618361 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import pygame
class Display():
def __init__(self):
pygame.display.init()
mode_info = pygame.display.Info()
self.screen = pygame.display.set_mode(
(mode_info.current_w, mode_info.current_h),
pygame.FULLSCREEN )
def update(self, groups = None):
""" Updates the screen: clear, blit gropus and flip """
self.screen.fill()
pygame.display.flip()
def __del__(self):
pygame.display.quit()
|