-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.tscn
111 lines (95 loc) · 2.62 KB
/
Menu.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Menu.gd" type="Script" id=1]
[ext_resource path="res://fonts/Xolonium-Regular.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://sounds/mixkit-spaceship-system-break-down-2959.wav" type="AudioStream" id=3]
[ext_resource path="res://sounds/game_music.mp3" type="AudioStream" id=4]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 2 )
[sub_resource type="InputEventAction" id=2]
action = "ui_enter"
[sub_resource type="ShortCut" id=3]
shortcut = SubResource( 2 )
[sub_resource type="DynamicFont" id=4]
size = 64
font_data = ExtResource( 2 )
[node name="Menu" type="CanvasLayer"]
script = ExtResource( 1 )
[node name="ScoreLabel" type="Label" parent="."]
margin_left = 226.0
margin_right = 511.0
margin_bottom = 78.0
custom_fonts/font = SubResource( 1 )
text = "0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BulletLabel" type="Label" parent="."]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -1656.06
margin_top = 80.6349
margin_right = -1395.06
margin_bottom = 158.635
custom_fonts/font = SubResource( 1 )
text = "5"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Message" type="Label" parent="."]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_top = -39.0
margin_bottom = 39.0
custom_fonts/font = SubResource( 1 )
text = "Shoot the Planes"
align = 1
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="StartButton" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -88.0
margin_top = -152.0
margin_right = 92.0
margin_bottom = -68.0
custom_fonts/font = SubResource( 1 )
shortcut = SubResource( 3 )
text = "Start"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MessageTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
[node name="ScoreDEsc" type="Label" parent="."]
margin_left = 2.0
margin_top = 1.0
margin_right = 236.0
margin_bottom = 79.0
custom_fonts/font = SubResource( 4 )
text = "Score: "
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BulletDEsc" type="Label" parent="."]
margin_left = 6.24261
margin_top = 75.9533
margin_right = 240.243
margin_bottom = 153.953
custom_fonts/font = SubResource( 4 )
text = "Bullets:"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="StartButton" to="." method="_on_StartButton_pressed"]
[connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]