-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.tscn
118 lines (104 loc) · 3.4 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
112
113
114
115
116
117
118
[gd_scene load_steps=13 format=2]
[ext_resource path="res://sprites/background.png" type="Texture" id=1]
[ext_resource path="res://sprites/title.png" type="Texture" id=2]
[ext_resource path="res://fonts/vt323/VT323-Regular.ttf" type="DynamicFontData" id=3]
[ext_resource path="res://sprites/play_button.png" type="Texture" id=4]
[ext_resource path="res://sprites/play_button_active.png" type="Texture" id=5]
[ext_resource path="res://scripts/Menu.gd" type="Script" id=6]
[ext_resource path="res://audio/menu_music.wav" type="AudioStream" id=7]
[sub_resource type="CanvasItemMaterial" id=1]
blend_mode = 2
[sub_resource type="CanvasItemMaterial" id=2]
[sub_resource type="Environment" id=3]
background_mode = 4
background_energy = 7.74
background_canvas_max_layer = 1
ambient_light_color = Color( 0.0666667, 0.0588235, 0.0588235, 1 )
ambient_light_energy = 9.67
ambient_light_sky_contribution = 0.0
fog_color = Color( 0.00784314, 0.00784314, 0.00784314, 1 )
fog_sun_color = Color( 0.301961, 0.0196078, 0.580392, 1 )
tonemap_mode = 2
dof_blur_near_distance = 0.1
dof_blur_near_transition = 0.11
dof_blur_near_amount = 0.09
glow_enabled = true
glow_intensity = 1.56
glow_strength = 0.76
glow_bloom = 0.52
glow_blend_mode = 1
glow_hdr_threshold = 0.5
glow_hdr_scale = 0.33
glow_bicubic_upscale = true
[sub_resource type="DynamicFont" id=4]
size = 36
extra_spacing_top = 4
extra_spacing_bottom = 1
extra_spacing_char = 2
extra_spacing_space = -2
font_data = ExtResource( 3 )
[sub_resource type="DynamicFont" id=5]
outline_color = Color( 0.407843, 0.407843, 0.407843, 1 )
extra_spacing_char = 2
font_data = ExtResource( 3 )
[node name="Menu" type="Node2D"]
script = ExtResource( 6 )
[node name="Background" type="Sprite" parent="."]
material = SubResource( 1 )
position = Vector2( 493.48, 325.871 )
scale = Vector2( 133.304, 80.4257 )
texture = ExtResource( 1 )
[node name="Title" type="Sprite" parent="."]
material = SubResource( 2 )
position = Vector2( 512, 128 )
scale = Vector2( 0.206811, 0.206811 )
texture = ExtResource( 2 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 3 )
[node name="HighScore" type="Label" parent="."]
margin_left = 284.0
margin_top = 235.0
margin_right = 741.0
margin_bottom = 307.0
rect_pivot_offset = Vector2( 300, 21 )
custom_fonts/font = SubResource( 4 )
text = "High Score: 2350"
align = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Message" type="Label" parent="."]
margin_left = 284.0
margin_top = 446.0
margin_right = 741.0
margin_bottom = 518.0
rect_pivot_offset = Vector2( 300, 21 )
custom_fonts/font = SubResource( 5 )
custom_colors/font_color = Color( 0.462745, 0.462745, 0.462745, 1 )
text = "Game By Craig Childs"
align = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayButton" type="TextureButton" parent="."]
margin_left = 416.0
margin_top = 327.0
margin_right = 800.0
margin_bottom = 441.0
rect_scale = Vector2( 0.5, 0.5 )
action_mode = 0
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
texture_hover = ExtResource( 5 )
texture_focused = ExtResource( 5 )
stretch_mode = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GameMusic" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 7 )
autoplay = true
[connection signal="pressed" from="PlayButton" to="." method="_on_PlayButton_pressed" flags=6]
[connection signal="finished" from="GameMusic" to="." method="_on_GameMusic_finished"]