def __init__(self): Player.__init__(self) self.nb_jumps = 0 # SPECIAL self.initial_speed_x = self.speed_x self.initial_speed_y = self.speed_y self.special_activated = False self.special_activation_time = 0 self.special_speed_x = self.speed_x + 5 self.special_speed_y = self.speed_y + 5 self.special_duration = 5000 # 5 seconds
def update(self, walls): self.checkSpecialTime() Player.update(self, walls)
def __init__(self): Player.__init__(self)