forked from heroiclabs/fishgame-godot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
150 lines (129 loc) · 5.54 KB
/
Main.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
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
[gd_scene load_steps=19 format=3 uid="uid://bfhe2n4g71cu"]
[ext_resource type="Script" path="res://Main.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://c1tbtdciosmlb" path="res://main/screens/ConnectionScreen.tscn" id="2"]
[ext_resource type="PackedScene" uid="uid://cdyj7ly8lcdlv" path="res://Game.tscn" id="3"]
[ext_resource type="PackedScene" path="res://main/screens/MatchScreen.tscn" id="4"]
[ext_resource type="Script" path="res://main/UILayer.gd" id="5"]
[ext_resource type="PackedScene" uid="uid://cvr6o7834fy1t" path="res://main/screens/ReadyScreen.tscn" id="6"]
[ext_resource type="PackedScene" uid="uid://u1fw537kl61p" path="res://main/screens/TitleScreen.tscn" id="7"]
[ext_resource type="FontFile" uid="uid://dpsvmpxtgjnrg" path="res://assets/fonts/monogram.tres" id="8"]
[ext_resource type="Script" path="res://main/Music.gd" id="9"]
[ext_resource type="AudioStream" uid="uid://clhunui0oqjs2" path="res://assets/music/BUILD UP.ogg" id="10"]
[ext_resource type="AudioStream" uid="uid://dpcvmn5wya6jo" path="res://assets/music/THEME #1.ogg" id="11"]
[ext_resource type="AudioStream" uid="uid://bhwpacdkwpvr5" path="res://assets/music/DOMEFIGHTERS.ogg" id="12"]
[ext_resource type="AudioStream" uid="uid://dfeknvjjx0wiu" path="res://assets/music/FISHSTICKS.ogg" id="13"]
[ext_resource type="PackedScene" path="res://main/screens/LeaderboardScreen.tscn" id="14"]
[ext_resource type="PackedScene" path="res://main/screens/CreditsScreen.tscn" id="15"]
[ext_resource type="Script" path="res://main/screens/TransparentButton.gd" id="17"]
[ext_resource type="Texture2D" uid="uid://wqifmham4jn0" path="res://assets/ui/mute.png" id="18"]
[ext_resource type="Texture2D" uid="uid://cvjrremywfuyx" path="res://assets/ui/close.png" id="19"]
[node name="Main" type="Node2D"]
script = ExtResource("1")
[node name="Game" parent="." instance=ExtResource("3")]
position = Vector2(-1, 0)
[node name="UILayer" type="CanvasLayer" parent="."]
process_mode = 3
script = ExtResource("5")
[node name="Screens" type="Control" parent="UILayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TitleScreen" parent="UILayer/Screens" instance=ExtResource("7")]
visible = false
custom_minimum_size = Vector2(1024, 620)
layout_mode = 1
[node name="ConnectionScreen" parent="UILayer/Screens" instance=ExtResource("2")]
visible = false
layout_mode = 1
[node name="MatchScreen" parent="UILayer/Screens" instance=ExtResource("4")]
visible = false
layout_mode = 1
anchors_preset = 15
offset_left = 0.0
offset_top = 0.0
offset_right = 0.0
offset_bottom = 0.0
grow_horizontal = 2
grow_vertical = 2
[node name="ReadyScreen" parent="UILayer/Screens" instance=ExtResource("6")]
visible = false
layout_mode = 1
[node name="LeaderboardScreen" parent="UILayer/Screens" instance=ExtResource("14")]
visible = false
layout_mode = 1
anchors_preset = 15
offset_left = 0.0
offset_top = 0.0
offset_right = 0.0
offset_bottom = 0.0
grow_horizontal = 2
grow_vertical = 2
[node name="CreditsScreen" parent="UILayer/Screens" instance=ExtResource("15")]
visible = false
anchors_preset = 0
[node name="Overlay" type="Control" parent="UILayer"]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="Message" type="Label" parent="UILayer/Overlay"]
visible = false
layout_mode = 0
anchor_right = 1.0
offset_top = 20.0
offset_bottom = 45.0
theme_override_fonts/font = ExtResource("8")
text = "Waiting for players..."
[node name="BackButton" type="Button" parent="UILayer/Overlay"]
layout_mode = 0
anchor_left = 1.0
anchor_right = 1.0
offset_left = -30.0
offset_top = 2.0
offset_right = -2.0
offset_bottom = 30.0
focus_mode = 0
icon = ExtResource("19")
clip_text = true
script = ExtResource("17")
[node name="MuteButton" type="Button" parent="UILayer/Overlay"]
layout_mode = 1
offset_right = 24.0
offset_bottom = 24.0
focus_mode = 0
toggle_mode = true
icon = ExtResource("18")
clip_text = true
script = ExtResource("17")
[node name="Music" type="Node" parent="."]
script = ExtResource("9")
[node name="BuildUp" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource("10")
bus = &"Music"
[node name="DomeFighters" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource("12")
bus = &"Music"
[node name="Fishsticks" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource("13")
bus = &"Music"
[node name="Theme1" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource("11")
bus = &"Music"
[connection signal="game_over_signal" from="Game" to="." method="_on_game_over_signal"]
[connection signal="game_started_signal" from="Game" to="." method="_on_game_started_signal"]
[connection signal="player_dead" from="Game" to="." method="_on_player_dead"]
[connection signal="back_button_pressed" from="UILayer" to="." method="_on_UILayer_back_button"]
[connection signal="change_screen" from="UILayer" to="." method="_on_UILayer_change_screen"]
[connection signal="play_local" from="UILayer/Screens/TitleScreen" to="." method="_on_TitleScreen_play_local"]
[connection signal="play_online" from="UILayer/Screens/TitleScreen" to="." method="_on_TitleScreen_play_online"]
[connection signal="ready_pressed" from="UILayer/Screens/ReadyScreen" to="." method="_on_ReadyScreen_ready_pressed"]
[connection signal="pressed" from="UILayer/Overlay/BackButton" to="UILayer" method="_on_BackButton_pressed"]
[connection signal="toggled" from="UILayer/Overlay/MuteButton" to="UILayer" method="_on_MuteButton_toggled"]
[connection signal="song_finished" from="Music" to="." method="_on_Music_song_finished"]