From 4eba01e61b8c22f7491f0f3e479b58e675351e5c Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 24 Aug 2025 20:11:25 +0100 Subject: [PATCH] Fixed white space *for real*; updated Godot settings not to "correct" whitespace. --- ball.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ball.gd b/ball.gd index b55b7c9..934b492 100644 --- a/ball.gd +++ b/ball.gd @@ -5,15 +5,15 @@ const SPEED : float = 300.0 func _ready() -> void: initialize() - func _physics_process(delta: float) -> void: - var collision = move_and_collide(velocity * _delta) - if collision: - velocity = velocity.bounce(collision.get_normal()) +func _physics_process(_delta: float) -> void: + var collision = move_and_collide(velocity * _delta) + if collision: + velocity = velocity.bounce(collision.get_normal()) func initialize(): var extra_offset = 0.0 if randf() < 0.5 else PI var angle = extra_offset + randf_range(-PI/3.0, PI/3.0) - velocity = Vector2(cos(angle), sin(angle)).normalized() * SPEED + velocity = Vector2(cos(angle), sin(angle)).normalized() * SPEED position = get_viewport_rect().size / 2.0 func _on_screen_exited() -> void: