-
Notifications
You must be signed in to change notification settings - Fork 1
/
HUD.tscn
55 lines (45 loc) · 1.33 KB
/
HUD.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[gd_scene load_steps=6 format=2]
[ext_resource path="res://fonts/Xolonium-Regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://HUD.cs" type="Script" id=2]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 1 )
[sub_resource type="InputEventAction" id=2]
action = "start_game"
[sub_resource type="ShortCut" id=3]
shortcut = SubResource( 2 )
[node name="HUD" type="CanvasLayer"]
script = ExtResource( 2 )
[node name="ScoreLabel" type="Label" parent="."]
margin_left = 240.0
margin_top = 60.0
margin_right = 285.0
margin_bottom = 138.0
custom_fonts/font = SubResource( 1 )
text = "0"
align = 1
__meta__ = {
"_editor_description_": ""
}
[node name="Message" type="Label" parent="."]
margin_top = 240.0
margin_right = 480.0
margin_bottom = 399.0
custom_fonts/font = SubResource( 1 )
text = "Dodge the Creepers!"
align = 1
autowrap = true
[node name="StartButton" type="Button" parent="."]
margin_left = 150.0
margin_top = 540.0
margin_right = 330.0
margin_bottom = 640.0
custom_fonts/font = SubResource( 1 )
shortcut = SubResource( 3 )
text = "Start"
icon_align = 1
[node name="MessageTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[connection signal="pressed" from="StartButton" to="." method="OnStartButtonPressed"]
[connection signal="timeout" from="MessageTimer" to="." method="OnMessageTimerTimeout"]