-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameOver.tscn
100 lines (85 loc) · 2.44 KB
/
GameOver.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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Fonts/apple_kid.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://GameOver.gd" type="Script" id=2]
[ext_resource path="res://LobbyUI/EB_Panel.tres" type="StyleBox" id=3]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[sub_resource type="Shader" id=3]
code = "shader_type canvas_item;
uniform float height = 3.0;
uniform float curve = 0.1;
uniform float speed = 3.0;
void vertex() {
VERTEX.y += height*sin(VERTEX.x*curve+TIME*speed);
}"
[sub_resource type="ShaderMaterial" id=4]
shader = SubResource( 3 )
shader_param/height = 5.0
shader_param/curve = 0.05
shader_param/speed = 10.0
[sub_resource type="DynamicFont" id=5]
size = 128
outline_size = 8
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 1 )
[node name="GameOver" type="CanvasLayer"]
layer = 100
script = ExtResource( 2 )
[node name="Control" type="Control" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
mouse_filter = 1
theme = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -236.0
margin_top = -152.0
margin_right = 236.0
margin_bottom = 152.0
size_flags_horizontal = 4
size_flags_vertical = 4
custom_constants/separation = 24
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Winner" type="Label" parent="Control/VBoxContainer"]
material = SubResource( 4 )
margin_right = 472.0
margin_bottom = 104.0
custom_fonts/font = SubResource( 5 )
text = "SEEKER WINS!"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="Control/VBoxContainer"]
margin_top = 128.0
margin_right = 472.0
margin_bottom = 180.0
[node name="HBoxContainer" type="HBoxContainer" parent="Control/VBoxContainer"]
margin_top = 204.0
margin_right = 472.0
margin_bottom = 304.0
alignment = 1
[node name="MainMenuButton" type="Button" parent="Control/VBoxContainer/HBoxContainer"]
margin_left = 76.0
margin_right = 396.0
margin_bottom = 100.0
rect_min_size = Vector2( 320, 100 )
mouse_default_cursor_shape = 2
custom_styles/normal = ExtResource( 3 )
text = "Main menu"
[connection signal="pressed" from="Control/VBoxContainer/HBoxContainer/MainMenuButton" to="." method="_on_MainMenuButton_pressed"]