diff options
author | Logan <logan@cflip.net> | 2022-09-26 11:15:14 -0600 |
---|---|---|
committer | Logan <logan@cflip.net> | 2022-09-26 11:15:14 -0600 |
commit | ec3b1f444db16ebfbbde48e20be3b92500762a57 (patch) | |
tree | 50c0ee5ca0576b9fea8039c3952db8517d185967 /scripts/timer_label.gd | |
parent | edb36b840a32f5b9cd799d709a747edc1bb622a8 (diff) |
Add countdown timer.
Diffstat (limited to 'scripts/timer_label.gd')
-rw-r--r-- | scripts/timer_label.gd | 9 |
1 files changed, 9 insertions, 0 deletions
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) + |