From ec3b1f444db16ebfbbde48e20be3b92500762a57 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 26 Sep 2022 11:15:14 -0600 Subject: Add countdown timer. --- scripts/timer_label.gd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/timer_label.gd (limited to 'scripts/timer_label.gd') diff --git a/scripts/timer_label.gd b/scripts/timer_label.gd new file mode 100644 index 0000000..7a83ce9 --- /dev/null +++ b/scripts/timer_label.gd @@ -0,0 +1,9 @@ +extends Label + +func _ready(): + $Timer.start() + text = "Time: " + str($Timer.time_left) + +func _process(delta): + text = "Time: " + str($Timer.time_left) + -- cgit v1.2.3