tetrino_color = (randint(1, 255), randint(1, 255), randint(1, 255)) core.update(tetrino, area, menu, screen) if init < time: tetrino.move_down(area.matrix()) init += (300 - 10 * area.level) if init < 100: init = 100 screen.fill((0, 0, 0)) tetrino.draw(area.matrix(), screen) area.draw_area(tetrino, area.matrix(), screen) area.print_game_info(screen) next_tetrino = Tetrino(tetrino_color, tetrino_queue[1], 0, 12, 0) next_tetrino.tetrino_update(area.matrix()) area.draw_next(next_tetrino, screen) hud.draw_hud(screen) pygame.display.flip() first_loop = 1 while menu.doublePlayer and tetrino.game_state: core.check_input() time = pygame.time.get_ticks() - start_time if tetrino.state == 1: next_tetrino.deactivate() tetrino_queue.pop(0) tetrino_queue.append(randint(0, 6)) tetrino = Tetrino(tetrino_color, tetrino_queue[0], 0, 5, 0) tetrino_color = (randint(1, 255), randint(1, 255), randint(1, 255))