summaryrefslogtreecommitdiffstats
path: root/Detection.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-07-23 17:17:29 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-07-23 17:17:29 -0400
commit2e7b525d907f740367324a485eaeed2fe1fa5d6d (patch)
tree14b180d220f55397d77196dc4599a478889c90b9 /Detection.gd
parent6c3e080ad94dcbd3a3db678dd55da51cde869335 (diff)
downloadchicken-chaser-gd-2e7b525d907f740367324a485eaeed2fe1fa5d6d.tar.gz
chicken-chaser-gd-2e7b525d907f740367324a485eaeed2fe1fa5d6d.zip
Add Chicken Chasing
Diffstat (limited to 'Detection.gd')
-rw-r--r--Detection.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/Detection.gd b/Detection.gd
new file mode 100644
index 0000000..cde309b
--- /dev/null
+++ b/Detection.gd
@@ -0,0 +1,9 @@
+extends Area
+
+func _ready():
+ var radius = get_parent().detection_range
+ scale = Vector3(radius,1.0,radius)
+
+func _unhandled_key_input(_event):
+ if Input.is_action_just_pressed("toggle_radar"):
+ visible = !visible