summaryrefslogtreecommitdiff
path: root/scenes/main.tscn
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-15 19:00:30 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-15 19:00:30 -0600
commitd41af623741dd3a60ddfb79e94fc00b60308ee06 (patch)
tree2934080d0657008cee1b7acb8f29efaa2f55529b /scenes/main.tscn
parent7a468e63650bd5f10e8402f416ea988883844f89 (diff)
Create microgame spawn timer
Diffstat (limited to 'scenes/main.tscn')
-rw-r--r--scenes/main.tscn14
1 files changed, 13 insertions, 1 deletions
diff --git a/scenes/main.tscn b/scenes/main.tscn
index 5a4640f..f76412c 100644
--- a/scenes/main.tscn
+++ b/scenes/main.tscn
@@ -1,10 +1,12 @@
-[gd_scene load_steps=4 format=3 uid="uid://d06d1vihf2oqp"]
+[gd_scene load_steps=5 format=3 uid="uid://d06d1vihf2oqp"]
[ext_resource type="Texture2D" uid="uid://b03ygtrwha22g" path="res://taytay/IMG_5199.jpeg" id="1_o2s48"]
+[ext_resource type="Script" path="res://scenes/main.gd" id="1_y7a0r"]
[ext_resource type="Script" path="res://scenes/closable_window.gd" id="2_2mdl3"]
[ext_resource type="PackedScene" uid="uid://baukkysebggup" path="res://scenes/window_mvp.tscn" id="2_ls66h"]
[node name="Node2D" type="Node2D"]
+script = ExtResource("1_y7a0r")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(636.307, 381.672)
@@ -22,4 +24,14 @@ script = ExtResource("2_2mdl3")
[node name="WindowMvp" parent="Window" instance=ExtResource("2_ls66h")]
+[node name="Score" type="Label" parent="."]
+offset_top = 2.0
+offset_right = 83.0
+offset_bottom = 25.0
+text = "Net worth: $"
+
+[node name="Microgame spawn timer" type="Timer" parent="."]
+autostart = true
+
[connection signal="close_requested" from="Window" to="Window" method="_on_close_requested"]
+[connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"]