class_name PlayerCamera extends Camera2D # Track the player const SPEED_TO_ZOOM = 0.001 func _on_moved(speed: float) -> void: zoom = Vector2.ONE / (1 + speed * SPEED_TO_ZOOM)