mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Uses new unified StreamPeer, dropped the multiplayer part (in favor of the dedicated WebSocket demo), add reference WebSocketClient and WebSocketServer signal-based implementations that can be used as drop-in nodes in any project. Might be worth maintaning it as a separate addon.
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://dye16x7udqrxg"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://qvg4q16blgx5" path="res://server.tscn" id="1_0srxc"]
|
|
[ext_resource type="PackedScene" uid="uid://ph5ghsflqegf" path="res://client.tscn" id="2_percb"]
|
|
|
|
[node name="Combo" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="Box" type="HBoxContainer" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Server" parent="Box" instance=ExtResource("1_0srxc")]
|
|
anchors_preset = 0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
offset_right = 574.0
|
|
offset_bottom = 648.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Box"]
|
|
offset_left = 578.0
|
|
offset_right = 1152.0
|
|
offset_bottom = 648.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Client" parent="Box/VBoxContainer" instance=ExtResource("2_percb")]
|
|
anchors_preset = 0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
offset_right = 574.0
|
|
offset_bottom = 213.0
|
|
|
|
[node name="Client2" parent="Box/VBoxContainer" instance=ExtResource("2_percb")]
|
|
anchors_preset = 0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
offset_top = 217.0
|
|
offset_right = 574.0
|
|
offset_bottom = 430.0
|
|
|
|
[node name="Client3" parent="Box/VBoxContainer" instance=ExtResource("2_percb")]
|
|
anchors_preset = 0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
offset_top = 434.0
|
|
offset_right = 574.0
|
|
offset_bottom = 648.0
|