def transition_out(self):
        for credit in self.current_credit:
            credit.image = pg.Surface(credit.rect.size).convert()
            credit.image.set_colorkey(c.BLACK)
            credit.image.set_alpha(self.alpha)
            credit.image.blit(credit.text_image, (0, 0))
           
        self.alpha -= 5
        if self.alpha <= 0:
            self.alpha = 0
            if len(self.credit_sprites) - 1 < self.index:
                self.index += 1
            else:
                self.level.done = True
                self.level.next = c.MAIN_MENU
            self.current_credit = self.credit_sprites[self.index]
            self.state = c.TRANSITION_IN
dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/states/credits.py/CreditEntry.transition_out/swapped operands of `<`