def __init__(self, rect, window): Sprite.__init__(self, rect, window) self.font = pygame.font.SysFont("Cooper Black", 80) #Action de callBack self.action = None
def __init__(self, rect, window): Sprite.__init__(self, rect, window) self.ball_color = random.choice(BALL_COLORS) #Permet de savoir si la balle va en haut ou en bas self.move_up = False