Repository navigation
Expand file tree
/
Copy pathmain.tscn52174036121.tmp
More file actions
152 lines (126 loc) · 5.55 KB
/
Copy pathmain.tscn52174036121.tmp
File metadata and controls
152 lines (126 loc) · 5.55 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
[gd_scene format=3 uid="uid://debt1vtw72ij3"]
[ext_resource type="Script" uid="uid://dyodvuu0u0l4g" path="res://main.gd" id="1_ig7tw"]
[ext_resource type="PackedScene" uid="uid://fu4l6qebd41q" path="res://lobby.tscn" id="2_h2yge"]
[ext_resource type="Script" uid="uid://be5jldou2oxww" path="res://multiplayer_processing.gd" id="3_5vw27"]
[ext_resource type="Script" uid="uid://c752ago5p6ngl" path="res://hud.gd" id="4_1bvp3"]
[ext_resource type="Script" uid="uid://gwlpdygamilf" path="res://to_client.gd" id="4_272bh"]
[ext_resource type="Script" uid="uid://beko5bfb6phl4" path="res://to_server.gd" id="5_5vw27"]
[ext_resource type="Script" uid="uid://bu3so18sk52lk" path="res://menu_hud.gd" id="6_7mycd"]
[node name="Main" type="Node" unique_id=1246980976]
script = ExtResource("1_ig7tw")
[node name="Multiplayer_Processing" type="Node" parent="." unique_id=240808693]
script = ExtResource("3_5vw27")
[node name="Lobby" parent="Multiplayer_Processing" unique_id=407135574 instance=ExtResource("2_h2yge")]
[node name="ToClient" type="Node" parent="Multiplayer_Processing" unique_id=1847026767]
script = ExtResource("4_272bh")
[node name="ToServer" type="Node" parent="Multiplayer_Processing" unique_id=1970030789]
script = ExtResource("5_5vw27")
[node name="HUD" type="CanvasLayer" parent="." unique_id=880426760]
script = ExtResource("4_1bvp3")
[node name="Host_Game" type="Button" parent="HUD" unique_id=841945725]
offset_left = 152.0
offset_top = 127.0
offset_right = 427.0
offset_bottom = 204.0
theme_override_font_sizes/font_size = 50
text = "Host Game"
[node name="Join_Game" type="Button" parent="HUD" unique_id=146877542]
offset_left = 633.0
offset_top = 125.0
offset_right = 887.0
offset_bottom = 202.0
theme_override_font_sizes/font_size = 50
text = "Join Game
"
[node name="Start_Game" type="Button" parent="HUD" unique_id=14260205]
offset_left = 47.0
offset_top = 298.0
offset_right = 327.0
offset_bottom = 375.0
theme_override_font_sizes/font_size = 50
text = "Start Game"
[node name="ReturnToTitlePage" type="Button" parent="HUD" unique_id=1588702548]
offset_left = 288.0
offset_top = 459.0
offset_right = 771.0
offset_bottom = 536.0
theme_override_font_sizes/font_size = 50
text = "Return to Title Page"
[node name="IP" type="LineEdit" parent="HUD" unique_id=1785417164]
offset_left = 435.0
offset_top = 295.0
offset_right = 712.0
offset_bottom = 358.0
theme_override_font_sizes/font_size = 40
text = "localhost"
placeholder_text = "IP"
[node name="Port" type="LineEdit" parent="HUD" unique_id=1016865726]
offset_left = 840.0
offset_top = 294.0
offset_right = 1000.0
offset_bottom = 357.0
theme_override_font_sizes/font_size = 40
text = "8080"
placeholder_text = "Port"
[node name="WaitingToStart" type="Label" parent="HUD" unique_id=1018167313]
offset_left = 368.0
offset_top = 376.0
offset_right = 713.0
offset_bottom = 431.0
theme_override_font_sizes/font_size = 40
text = "Waiting to Start ..."
[node name="MenuHUD" type="CanvasLayer" parent="." unique_id=290658494]
script = ExtResource("6_7mycd")
[node name="MainMenu" type="Control" parent="MenuHUD" unique_id=400417236]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Mouse_Blocker" type="Control" parent="MenuHUD/MainMenu" unique_id=126095054]
visible = false
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Close" type="Button" parent="MenuHUD/MainMenu" unique_id=1708842508]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0
[node name="Settings" type="Button" parent="MenuHUD/MainMenu" unique_id=1403175521]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0
[node name="Quit" type="Button" parent="MenuHUD/MainMenu" unique_id=685930692]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0
[node name="Settings" type="Control" parent="MenuHUD" unique_id=699399105]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Back" type="Button" parent="MenuHUD/Settings" unique_id=2009087259]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0
[node name="SubViewport" type="SubViewport" parent="." unique_id=389531334]
[node name="Camera2D" type="Camera2D" parent="SubViewport" unique_id=976389741]
zoom = Vector2(0.1, 0.1)
[node name="dev_end_game" type="Button" parent="." unique_id=107850768]
offset_left = 1399.0
offset_top = 918.0
offset_right = 1869.0
offset_bottom = 1034.0
theme_override_font_sizes/font_size = 50
text = "DEV: end game"
[connection signal="player_connected" from="Multiplayer_Processing/Lobby" to="Multiplayer_Processing" method="register_player"]
[connection signal="player_disconnected" from="Multiplayer_Processing/Lobby" to="Multiplayer_Processing" method="player_disconnected"]
[connection signal="server_disconnected" from="Multiplayer_Processing/Lobby" to="Multiplayer_Processing" method="server_disconnected"]
[connection signal="upon_join" from="Multiplayer_Processing/Lobby" to="Multiplayer_Processing" method="upon_join"]
[connection signal="pressed" from="HUD/Host_Game" to="." method="host_game"]
[connection signal="pressed" from="HUD/Join_Game" to="." method="join_game"]
[connection signal="pressed" from="HUD/Start_Game" to="." method="start_game"]
[connection signal="pressed" from="HUD/ReturnToTitlePage" to="." method="return_to_title_page"]
[connection signal="pressed" from="MenuHUD/MainMenu/Close" to="MenuHUD" method="close_pressed"]
[connection signal="pressed" from="MenuHUD/MainMenu/Settings" to="MenuHUD" method="_on_settings_pressed"]
[connection signal="pressed" from="MenuHUD/Settings/Back" to="MenuHUD" method="settings_back_pressed"]
[connection signal="pressed" from="dev_end_game" to="." method="end_game"]