chain levels with spaghetti

This commit is contained in:
Taevas 2025-02-23 00:46:23 +01:00
parent 7a18c4f8c6
commit 6a59b54c11
10 changed files with 465 additions and 15 deletions

View file

@ -18,7 +18,7 @@ func _process(_delta: float) -> void:
## Angle of the camera, so the player can see where the ball is going
var velocity: Vector3 = $Sphere.linear_velocity
var desired_x = max(min(velocity.y, 20), -20)
var desired_x = max(min(velocity.y, 35), -35)
var desired_y = max(min(-velocity.x, 50), -50)
var difference_x = $Camera.rotation_degrees.x - desired_x
var difference_y = $Camera.rotation_degrees.y - desired_y