[gd_scene load_steps=2 format=3 uid="uid://cd3upe4xetlgl"]

[ext_resource type="Script" uid="uid://b2ec1cajpfusg" path="res://src/scripts/network/multiplayer.gd" id="1_rr2wm"]

[node name="Main" type="Node"]
script = ExtResource("1_rr2wm")

[node name="Level" type="Node" parent="."]

[node name="LevelSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("uid://dw0lbkh31rofd")
spawn_path = NodePath("../Level")
spawn_limit = 1

[node name="UI" type="MarginContainer" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -22.0
offset_top = -15.5
offset_right = 22.0
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2

[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
layout_mode = 2
theme_override_constants/separation = 16

[node name="Host" type="Button" parent="UI/VBoxContainer"]
layout_mode = 2
text = "Host"

[node name="Join" type="Button" parent="UI/VBoxContainer"]
layout_mode = 2
text = "Join"

[connection signal="pressed" from="UI/VBoxContainer/Host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="UI/VBoxContainer/Join" to="." method="_on_join_pressed"]
