After the character is moved clamp its position to the end of the camera bounds
var bounds_uw = camera_pos.y - view.y #the camera bounds at the top
var bounds_dw = camera_pos.y + view.y #the camera bounds at the bottom
$Bird.move_and_slide(velocity, Vector2.UP)
$Bird.global_position.y = clamp($Bird.global_position.y, bounds_uw, bounds_dw)