Example #1
0
    def __init__(self, rect, window):
        Sprite.__init__(self, rect, window)

        self.font = pygame.font.SysFont("Cooper Black", 80)

        #Action de callBack
        self.action = None
Example #2
0
    def __init__(self, rect, window):
        Sprite.__init__(self, rect, window)

        self.font = pygame.font.SysFont("Cooper Black", 80)

        #Action de callBack
        self.action = None
Example #3
0
    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