added multiplayer connection. TODO: Sync Inventory values. Disable moving of other color tiles
This commit is contained in:
parent
e8cd148bc7
commit
3de181134d
13 changed files with 360 additions and 67 deletions
47
Multiplayer/Multiplayer.tscn
Normal file
47
Multiplayer/Multiplayer.tscn
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bh31hq1uwqdts"]
|
||||
|
||||
[ext_resource type="Script" path="res://Multiplayer/Multiplayer.gd" id="1_0n82x"]
|
||||
[ext_resource type="Script" path="res://Multiplayer/LobbyInfo.gd" id="2_wf1xe"]
|
||||
|
||||
[node name="Multiplayer" type="Node"]
|
||||
script = ExtResource("1_0n82x")
|
||||
|
||||
[node name="Game" type="Node" parent="."]
|
||||
|
||||
[node name="LobbyInfo" type="CanvasLayer" parent="."]
|
||||
script = ExtResource("2_wf1xe")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="LobbyInfo"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LobbyInfo/PanelContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="LobbyCode" type="Label" parent="LobbyInfo/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="InsectIcons" type="HBoxContainer" parent="LobbyInfo/PanelContainer/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="StartGameButton" type="Button" parent="LobbyInfo/PanelContainer/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
text = "Start Game"
|
||||
|
||||
[node name="Button" type="Button" parent="LobbyInfo/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Back to menu"
|
||||
|
||||
[node name="PauseMenu" type="CanvasLayer" parent="."]
|
||||
|
||||
[connection signal="pressed" from="LobbyInfo/PanelContainer/VBoxContainer/StartGameButton" to="." method="_on_start_game_button_pressed"]
|
||||
[connection signal="pressed" from="LobbyInfo/PanelContainer/VBoxContainer/Button" to="LobbyInfo" method="_on_button_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue