-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tscn
More file actions
306 lines (268 loc) · 11 KB
/
main.tscn
File metadata and controls
306 lines (268 loc) · 11 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
[gd_scene load_steps=20 format=3 uid="uid://dns3vic506tdf"]
[ext_resource type="Script" uid="uid://4wlalwrwgqo4" path="res://Scripts/main.gd" id="1_df0y5"]
[ext_resource type="AudioStream" uid="uid://cwkvl0pbioowe" path="res://Sounds/SFX/COMAv_Cassette_Tape_Deep_Hum_BLEEOOP.wav" id="2_8pd4q"]
[ext_resource type="Shader" uid="uid://cr1wm2bfqdnap" path="res://Shaders/analyzer.gdshader" id="2_glvls"]
[ext_resource type="Script" uid="uid://bwpup32lji48f" path="res://Scripts/analyzer.gd" id="2_ids38"]
[ext_resource type="PackedScene" uid="uid://das7hohy4up7m" path="res://Scenes/input_flash.tscn" id="2_yaehf"]
[ext_resource type="Script" uid="uid://dqopmhq6ulog2" path="res://Scripts/ActiveTrack.gd" id="3_romnm"]
[ext_resource type="FontFile" uid="uid://drmbltel11xaa" path="res://Fonts/glitch-goblin-font/GlitchGoblin-2O87v.ttf" id="4_n04ua"]
[ext_resource type="AudioStream" uid="uid://dykriuyc7vaba" path="res://Sounds/SFX/cassette_deck_play.wav" id="5_8ddpg"]
[ext_resource type="Texture2D" uid="uid://cg55xdtkd1td2" path="res://Fonts/T_Space_Key_Dark.png" id="5_yh7ir"]
[ext_resource type="Shader" uid="uid://rem62kdifdal" path="res://Shaders/wavy.gdshader" id="6_53bqg"]
[ext_resource type="Texture2D" uid="uid://csl1q3hv1e5cv" path="res://Fonts/T_Mouse_Left_Key_Dark.png" id="6_ga2p0"]
[ext_resource type="AudioStream" uid="uid://i552n3q2hc0l" path="res://Sounds/Beats/fpc3beat120bpm.wav" id="7_a3l7o"]
[ext_resource type="PackedScene" uid="uid://dmbxfskpuaso4" path="res://Scenes/ScorePanel.tscn" id="9_0hlc4"]
[ext_resource type="Texture2D" uid="uid://dof443umeh7pr" path="res://Images/ux/UI Hologram Interface - Wenrexa/Button 1/Button Normal.png" id="13_vivmo"]
[ext_resource type="Texture2D" uid="uid://b1c11t8cmc8e5" path="res://Images/ux/UI Hologram Interface - Wenrexa/Button 1/Button Active.png" id="14_2cqfq"]
[ext_resource type="Texture2D" uid="uid://drh4gw1my1k84" path="res://Images/ux/UI Hologram Interface - Wenrexa/Button 1/Button Hover.png" id="15_yaehf"]
[ext_resource type="Script" uid="uid://cc4sgu3qo3qgt" path="res://Scripts/restart_btn.gd" id="16_2cqfq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ankj7"]
shader = ExtResource("2_glvls")
shader_parameter/freq_data = PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7v7rn"]
shader = ExtResource("6_53bqg")
shader_parameter/height = 3.0
shader_parameter/frequency = 20.0
shader_parameter/speed = 3.0
[node name="Menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 1.0
offset_right = -1.0
offset_bottom = -4.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_df0y5")
[node name="InputFlash" parent="." instance=ExtResource("2_yaehf")]
visible = false
z_index = 1
layout_mode = 2
anchors_preset = 0
offset_left = -2.0
offset_right = -2.00012
offset_bottom = -0.00012207
[node name="CassetteHum" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_8pd4q")
volume_db = -14.394
autoplay = true
[node name="ActiveTrack" type="AudioStreamPlayer2D" parent="."]
position = Vector2(-1.67026, -0.438817)
scale = Vector2(1.56211, 1.85774)
stream = ExtResource("7_a3l7o")
volume_db = 6.902
script = ExtResource("3_romnm")
[node name="CassettePlay" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_8ddpg")
[node name="equalizer" type="Control" parent="."]
anchors_preset = 0
anchor_right = 1.00052
anchor_bottom = 1.00465
offset_right = 0.00219727
offset_bottom = 0.0012207
script = ExtResource("2_ids38")
metadata/_edit_use_anchors_ = true
[node name="Background" type="ColorRect" parent="equalizer"]
material = SubResource("ShaderMaterial_ankj7")
layout_mode = 1
anchors_preset = -1
anchor_left = -0.00416667
anchor_top = -0.00740741
anchor_right = 1.00104
anchor_bottom = 0.997222
offset_left = 8.0
offset_top = 8.0
offset_right = -2.00061
offset_bottom = 3.00024
color = Color(0.341176, 0.341176, 0.341176, 1)
metadata/_edit_use_anchors_ = true
[node name="PaperControl" type="Control" parent="equalizer/Background"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Title" type="Label" parent="."]
material = SubResource("ShaderMaterial_7v7rn")
layout_mode = 1
anchors_preset = -1
anchor_left = 0.00468994
anchor_top = 0.0613953
anchor_right = 0.991141
anchor_bottom = 0.255814
theme_override_colors/font_color = Color(0.129412, 0.964706, 0.47451, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_x = 20
theme_override_constants/shadow_offset_y = 10
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 120
text = "Syncopath"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.210526
anchor_top = 0.390698
anchor_right = 0.786868
anchor_bottom = 0.87907
theme_override_constants/separation = 20
metadata/_edit_use_anchors_ = true
[node name="InputToBegin" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 25
alignment = 1
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/InputToBegin"]
layout_mode = 2
texture = ExtResource("5_yh7ir")
[node name="TextureRect2" type="TextureRect" parent="VBoxContainer/InputToBegin"]
layout_mode = 2
texture = ExtResource("6_ga2p0")
[node name="Label" type="Label" parent="VBoxContainer/InputToBegin"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 96
text = "To Begin"
horizontal_alignment = 1
[node name="TapAlong" type="HBoxContainer" parent="VBoxContainer"]
visible = false
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_constants/separation = 25
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/TapAlong"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 72
text = "Tap Along To The Beat"
horizontal_alignment = 1
[node name="KeepTapping" type="HBoxContainer" parent="VBoxContainer"]
visible = false
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_constants/separation = 25
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/KeepTapping"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 70
text = "Keep Tapping.
The audio is going to fade out"
horizontal_alignment = 1
[node name="Countdown" type="HBoxContainer" parent="VBoxContainer"]
visible = false
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_constants/separation = 25
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/Countdown"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 72
text = "Almost There! "
horizontal_alignment = 1
[node name="GameEndingCountdownLabel" type="Label" parent="VBoxContainer/Countdown"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_n04ua")
theme_override_font_sizes/font_size = 72
text = "5"
[node name="ScorePanel" parent="." instance=ExtResource("9_0hlc4")]
visible = false
layout_mode = 1
anchor_left = 0.237624
anchor_top = 0.0288372
anchor_right = 0.763146
anchor_bottom = 0.86217
offset_right = 0.0
grow_horizontal = 1
grow_vertical = 1
[node name="DebugModeViewport" type="SubViewportContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = -1
anchor_right = 0.269411
anchor_bottom = 0.812093
grow_horizontal = 2
grow_vertical = 2
stretch = true
metadata/_edit_use_anchors_ = true
[node name="SubViewport" type="SubViewport" parent="DebugModeViewport"]
transparent_bg = true
handle_input_locally = false
gui_disable_input = true
size = Vector2i(516, 873)
size_2d_override_stretch = true
render_target_update_mode = 0
[node name="DebugContents" type="VBoxContainer" parent="DebugModeViewport"]
layout_mode = 2
theme_override_constants/separation = 10
alignment = 1
metadata/_edit_use_anchors_ = true
[node name="Label" type="Label" parent="DebugModeViewport/DebugContents"]
layout_mode = 2
text = "Debug Mode: On"
[node name="TimeInformation" type="HBoxContainer" parent="DebugModeViewport/DebugContents"]
layout_mode = 2
[node name="TimeSinceGameStarted" type="Label" parent="DebugModeViewport/DebugContents/TimeInformation"]
layout_mode = 2
[node name="TimeTillAudioFades" type="Label" parent="DebugModeViewport/DebugContents/TimeInformation"]
layout_mode = 2
text = "Time Since Tracking"
horizontal_alignment = 1
[node name="PlayerBeatTracking" type="VBoxContainer" parent="DebugModeViewport/DebugContents"]
layout_mode = 2
[node name="BeatsCaptured" type="Label" parent="DebugModeViewport/DebugContents/PlayerBeatTracking"]
layout_mode = 2
[node name="MissedBeats" type="Label" parent="DebugModeViewport/DebugContents/PlayerBeatTracking"]
layout_mode = 2
[node name="RestartBtn" type="TextureButton" parent="."]
visible = false
layout_mode = 1
anchors_preset = -1
anchor_left = 0.39604
anchor_top = 0.862326
anchor_right = 0.60865
anchor_bottom = 0.988837
grow_horizontal = 2
grow_vertical = 0
action_mode = 0
texture_normal = ExtResource("13_vivmo")
texture_pressed = ExtResource("14_2cqfq")
texture_hover = ExtResource("15_yaehf")
stretch_mode = 4
script = ExtResource("16_2cqfq")
metadata/_edit_use_anchors_ = true
[node name="RichTextLabel" type="RichTextLabel" parent="RestartBtn"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.132353
anchor_top = 0.0588235
anchor_right = 0.857843
anchor_bottom = 0.882353
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 1
theme_override_fonts/normal_font = ExtResource("4_n04ua")
theme_override_font_sizes/normal_font_size = 64
text = "Restart"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[connection signal="beat_tracking_has_started" from="." to="." method="_on_beat_tracking_has_started"]
[connection signal="beat_tracking_has_started" from="." to="equalizer" method="_on_menu_beat_tracking_has_started" flags=6]
[connection signal="display_intro_additional_prompt" from="." to="." method="_on_display_intro_additional_prompt"]
[connection signal="game_ending" from="." to="." method="_on_game_ending"]
[connection signal="game_has_started" from="." to="." method="_on_game_has_started"]
[connection signal="game_over" from="." to="." method="_on_game_over"]
[connection signal="game_over" from="." to="ScorePanel" method="_on_menu_game_over"]
[connection signal="game_over" from="." to="RestartBtn" method="_on_menu_game_over"]
[connection signal="gui_input" from="." to="." method="_on_gui_input"]
[connection signal="time_to_fade_track_audio" from="." to="ActiveTrack" method="_on_time_to_fade_track_audio"]
[connection signal="pressed" from="RestartBtn" to="." method="_on_restart_btn_pressed"]
[connection signal="pressed" from="RestartBtn" to="ActiveTrack" method="_on_restart"]
[connection signal="pressed" from="RestartBtn" to="equalizer" method="_on_restart_btn_pressed"]
[connection signal="pressed" from="RestartBtn" to="RestartBtn" method="_on_pressed"]