diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/basketball.gd | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/basketball.gd b/scripts/basketball.gd index feed262..857e991 100644 --- a/scripts/basketball.gd +++ b/scripts/basketball.gd @@ -38,16 +38,10 @@ func _integrate_forces(state): state.linear_velocity = Vector2() state.angular_velocity = 0 -# Temporary testing controls func _process(delta): if waiting_for_shoot: $Sprite.rotation += spin_speed * delta $GhostSprite.rotation += spin_speed * delta - if Input.is_action_pressed("ui_left"): - start_position.x -= move_speed * delta - if Input.is_action_pressed("ui_right"): - start_position.x += move_speed * delta - start_position.x = clamp(start_position.x, 0, get_viewport_rect().size.x) func _input(event): if event.is_action_pressed("shoot") and mouse_over_ball and waiting_for_shoot: |