def unpause(self): State.unpause(self) self.update_bg() self.player.shooting = False #reset input events pressed = pygame.key.get_pressed() self.player.set_keypress(0, pressed[K_UP]) self.player.set_keypress(1, pressed[K_DOWN]) self.player.set_keypress(2, pressed[K_LEFT]) self.player.set_keypress(3, pressed[K_RIGHT]) for b in self.bullets: b.unpause() pygame.mixer.unpause() self.check_events() self.player.score_draw()
def unpause(self): State.unpause(self) self.update_scr = True