From ec3b1f444db16ebfbbde48e20be3b92500762a57 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 26 Sep 2022 11:15:14 -0600 Subject: Add countdown timer. --- scenes/interface.tscn | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'scenes/interface.tscn') diff --git a/scenes/interface.tscn b/scenes/interface.tscn index 53d9365..526db54 100644 --- a/scenes/interface.tscn +++ b/scenes/interface.tscn @@ -1,9 +1,26 @@ [gd_scene load_steps=2 format=2] -[ext_resource path="res://scripts/interface.gd" type="Script" id=1] +[ext_resource path="res://scripts/interface.gd" type="Script" id=3] -[node name="Interface" type="Label"] +[node name="Interface" type="Control"] +margin_right = 40.0 +margin_bottom = 40.0 +script = ExtResource( 3 ) + +[node name="Score Label" type="Label" parent="."] margin_right = 40.0 margin_bottom = 14.0 rect_scale = Vector2( 0.15, 0.15 ) -script = ExtResource( 1 ) + +[node name="Timer Label" type="Label" parent="."] +margin_top = 2.0 +margin_right = 40.0 +margin_bottom = 16.0 +rect_scale = Vector2( 0.15, 0.15 ) + +[node name="Timer" type="Timer" parent="Timer Label"] +wait_time = 30.0 + +[node name="Update Timer" type="Timer" parent="."] + +[connection signal="timeout" from="Update Timer" to="." method="_on_Update_Timer_timeout"] -- cgit v1.2.3