def __init__(self, play_sounds=True): pygame.init() self.play_sounds = play_sounds if self.play_sounds: pygame.mixer.init() self.screen = pygame.display.set_mode((1200, 900)) #omitindo flags pygame.display.flip() self.running = True self.playing = False pygame.display.set_caption("Gambiarra") self.clock = pygame.time.Clock() self.levels = Levels.init_levels() self.menu = GameMenu() self.congrats = pygame.image.load(os.path.join("data","images", "fim_fase.png")) if self.play_sounds: snd_file = os.path.join("data", "snd", "Congrats.wav") self.congrats_snd = pygame.mixer.Sound(snd_file) self._showed_help = False self.count = 0