summaryrefslogtreecommitdiff
path: root/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game.gd')
-rw-r--r--game.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/game.gd b/game.gd
new file mode 100644
index 0000000..2aa7acc
--- /dev/null
+++ b/game.gd
@@ -0,0 +1,9 @@
+extends Spatial
+
+
+func _input(delta):
+ if Input.is_action_just_pressed("camera-toggle"):
+ if $car.target:
+ $car.target = null
+ else:
+ $car.target = $ball