69 lines
1.8 KiB
Plaintext
69 lines
1.8 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://d22yt81uknksv"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/HUD/hud.gd" id="1_2cj2s"]
|
|
[ext_resource type="FontFile" uid="uid://dcbt7bfqcw4qq" path="res://fonts/Xolonium-Regular.ttf" id="1_f2ns1"]
|
|
|
|
[sub_resource type="InputEventAction" id="InputEventAction_y4w8n"]
|
|
action = &"start_game"
|
|
|
|
[sub_resource type="Shortcut" id="Shortcut_f88su"]
|
|
events = [SubResource("InputEventAction_y4w8n")]
|
|
|
|
[node name="HUD" type="CanvasLayer"]
|
|
script = ExtResource("1_2cj2s")
|
|
|
|
[node name="ScoreLabel" type="Label" parent="."]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -189.5
|
|
offset_top = 29.97
|
|
offset_right = 189.5
|
|
offset_bottom = 107.97
|
|
grow_horizontal = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_fonts/font = ExtResource("1_f2ns1")
|
|
theme_override_font_sizes/font_size = 64
|
|
text = "0"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Message" type="Label" parent="."]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -174.5
|
|
offset_top = -79.5
|
|
offset_right = 174.5
|
|
offset_bottom = 79.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_fonts/font = ExtResource("1_f2ns1")
|
|
theme_override_font_sizes/font_size = 64
|
|
horizontal_alignment = 1
|
|
autowrap_mode = 2
|
|
|
|
[node name="StartButton" type="Button" parent="."]
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -90.0
|
|
offset_top = -140.0
|
|
offset_right = 90.0
|
|
offset_bottom = -82.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
shortcut = SubResource("Shortcut_f88su")
|
|
text = "Start Game"
|
|
|
|
[node name="MessageTimer" type="Timer" parent="."]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
|
|
[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"]
|
|
[connection signal="timeout" from="MessageTimer" to="." method="_on_message_timer_timeout"]
|