diff options
Diffstat (limited to 'scripts')
-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) |