'Changes the view of the camera'

def update_viewport(self):

    third = (self.viewport.x + (self.viewport.w // 3))
    mario_center = self.mario.rect.centerx
    mario_right = self.mario.rect.right
    if ((self.mario.x_vel > 0) and (mario_center >= third)):
        mult = (0.5 if (mario_right < self.viewport.centerx) else 1)
        new = (self.viewport.x + (mult * self.mario.x_vel))
        highest = (self.level_rect.w - self.viewport.w)
        self.viewport.x = min(highest, new)
