diff options
author | Logan <logan@cflip.net> | 2022-09-24 20:01:52 -0600 |
---|---|---|
committer | Logan <logan@cflip.net> | 2022-09-24 20:01:52 -0600 |
commit | 5b32b0c4da2ab2fb1937a6b922dd7cb28448349e (patch) | |
tree | 705a009a7368aab2f9311be14d8ee20d552df41e /scripts/basketball.gd | |
parent | 5a5521ceab6e909c57e1186a09d9a6a2327dbcc3 (diff) |
Made ball keep the same rotation after resetting it.
Diffstat (limited to 'scripts/basketball.gd')
-rw-r--r-- | scripts/basketball.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/basketball.gd b/scripts/basketball.gd index 9a286e7..f55bc53 100644 --- a/scripts/basketball.gd +++ b/scripts/basketball.gd @@ -20,6 +20,9 @@ func toggle_mode(): waiting_for_shoot = false shoot() else: + # Adds offset of ball's rotation to sprite AFTER the entire object has rotated from physics. + # Done to keep appearance of same rotation to add consistency when resetting the ball. + $Sprite.rotation += rotation global_variables.has_scored = false waiting_for_shoot = true set_use_custom_integrator(waiting_for_shoot) |