Remove old and unused project settings, update various demos for 4.2 (#1024)

- Move all demo projects that don't require Forward+/Mobile-only features
  to the Compatibility rendering method. This improves performance significantly
  on low-end devices and ensures visuals are identical to a web export
  of the demo.
- Set deadzone on all inputs to 0.2 for better gamepad usability.
- Remove reliance on `default_env.tres` to use built-in Environment
  resources in the main scene instead (which follows the preview environment
  workflow).
- Remove notices pointing to GDNative or VisualScript, since both were
  removed in 4.0.
- Various bug fixes and usability tweaks to 10+ demos.
This commit is contained in:
Hugo Locurcio
2024-03-26 18:01:58 +01:00
committed by GitHub
parent 82913393a8
commit 31d1c0c112
266 changed files with 1619 additions and 1829 deletions

View File

@@ -8,11 +8,11 @@ This demo is devided in 4 parts:
- Itself divided into raw protocol and `WebRTCMultiplayer` handling.
- The `demo` contains a small app that uses it.
**NOTE**: You must extract the [latest version](https://github.com/godotengine/webrtc-native/releases) of the WebRTC GDNative plugin in the project folder to run from desktop.
**NOTE**: You must extract the [latest version](https://github.com/godotengine/webrtc-native/releases) of the WebRTC GDExtension plugin in the project folder to run from desktop.
Language: GDScript
Renderer: GLES 2
Renderer: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/537

View File

@@ -13,78 +13,57 @@ anchor_bottom = 0.983333
script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchors_preset = 15
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Signaling" type="HBoxContainer" parent="VBoxContainer"]
offset_right = 1120.0
offset_bottom = 31.0
layout_mode = 2
[node name="Label" type="Label" parent="VBoxContainer/Signaling"]
offset_top = 2.0
offset_right = 127.0
offset_bottom = 28.0
layout_mode = 2
text = "Signaling server:"
[node name="Port" type="SpinBox" parent="VBoxContainer/Signaling"]
offset_left = 131.0
offset_right = 214.0
offset_bottom = 31.0
layout_mode = 2
min_value = 1025.0
max_value = 65535.0
value = 9080.0
[node name="ListenButton" type="Button" parent="VBoxContainer/Signaling"]
offset_left = 218.0
offset_right = 273.0
offset_bottom = 31.0
layout_mode = 2
toggle_mode = true
text = "Listen"
[node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/Signaling"]
offset_left = 277.0
offset_right = 1120.0
offset_bottom = 31.0
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="LinkButton" type="LinkButton" parent="VBoxContainer/Signaling/CenterContainer"]
offset_left = 91.0
offset_top = 4.0
offset_right = 752.0
offset_bottom = 27.0
text = "Make sure to download the GDNative WebRTC Plugin and place it in the project folder"
modulate = Color(1, 0.956863, 0.207843, 1)
layout_mode = 2
text = "Make sure to download the GDExtension WebRTC Plugin and place it in the project folder"
[node name="Clients" type="GridContainer" parent="VBoxContainer"]
offset_top = 35.0
offset_right = 1120.0
offset_bottom = 626.0
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 2
[node name="ClientUI" parent="VBoxContainer/Clients" instance=ExtResource("2")]
offset_right = 558.0
offset_bottom = 294.0
layout_mode = 2
[node name="ClientUI2" parent="VBoxContainer/Clients" instance=ExtResource("2")]
offset_left = 562.0
offset_right = 1120.0
offset_bottom = 294.0
layout_mode = 2
[node name="ClientUI3" parent="VBoxContainer/Clients" instance=ExtResource("2")]
offset_top = 298.0
offset_right = 558.0
offset_bottom = 591.0
layout_mode = 2
[node name="ClientUI4" parent="VBoxContainer/Clients" instance=ExtResource("2")]
offset_left = 562.0
offset_top = 298.0
offset_right = 1120.0
offset_bottom = 591.0
layout_mode = 2
[node name="Server" type="Node" parent="."]
script = ExtResource("3")

View File

@@ -29,6 +29,7 @@ gdscript/warnings/unused_argument=false
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[network]
[rendering]
modules/webrtc_gdnative_script="res://demo/webrtc/webrtc.gdns"
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"