From c0d37da4fd91352f9fa9c7ff1219fea96283be17 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 23 Sep 2022 20:42:32 -0600 Subject: Created folders and renamed files and nodes to standard naming scheme. --- Basketball.gd | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Basketball.gd (limited to 'Basketball.gd') diff --git a/Basketball.gd b/Basketball.gd deleted file mode 100644 index 40d189c..0000000 --- a/Basketball.gd +++ /dev/null @@ -1,27 +0,0 @@ -extends RigidBody2D - -var start_position -var do_reset = false -var is_reset = true - -# Called when the node enters the scene tree for the first time. -func _ready(): - start_position = position - -# Override the default physics when we want to manually reset the position and rotation. -func _integrate_forces(state): - if do_reset: - state.transform = Transform2D(0, start_position) - state.linear_velocity = Vector2() - state.angular_velocity = 0 - - do_reset = false - is_reset = true - -func _input(event): - if event.is_action_pressed("shoot"): - if is_reset: - apply_impulse(Vector2(10, 10), Vector2(500, -800)) - is_reset = false - else: - do_reset = true -- cgit v1.2.3