import pygame from .scaling import Scaling 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 | pygame.SCALED ) Scaling.update_scaling(self.screen.get_size()) def update(self, groups = None): """ Updates the screen: clear, blit gropus and flip """ self.screen.fill("magenta") for group in groups: group.draw(self.screen) pygame.display.flip() def __del__(self): pygame.display.quit()