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

@@ -6,7 +6,7 @@ and [`LightOccluder2D`](https://docs.godotengine.org/en/latest/classes/class_lig
Language: GDScript
Renderer: GLES 2
Renderer: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/116

View File

@@ -107,6 +107,21 @@ _data = {
"motion3": SubResource("7")
}
[sub_resource type="Animation" id="Animation_emv7u"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DirectionalLight2D:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_rgbru"]
resource_name = "rotate_directional_light"
length = 20.0
@@ -124,21 +139,6 @@ tracks/0/keys = {
"values": [0.0, 6.28319]
}
[sub_resource type="Animation" id="Animation_emv7u"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DirectionalLight2D:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_6bket"]
_data = {
"RESET": SubResource("Animation_emv7u"),
@@ -326,10 +326,10 @@ material = SubResource("2")
texture = ExtResource("4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="RedLight"]
autoplay = "motion"
libraries = {
"": SubResource("AnimationLibrary_wawvy")
}
autoplay = "motion"
[node name="GreenLight" type="PointLight2D" parent="." groups=["point_light"]]
position = Vector2(753.756, 314.336)
@@ -344,10 +344,10 @@ material = SubResource("5")
texture = ExtResource("4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="GreenLight"]
autoplay = "m2"
libraries = {
"": SubResource("AnimationLibrary_fig6v")
}
autoplay = "m2"
[node name="BlueLight" type="PointLight2D" parent="." groups=["point_light"]]
position = Vector2(692.078, 29.8849)
@@ -362,14 +362,13 @@ material = SubResource("6")
texture = ExtResource("4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="BlueLight"]
autoplay = "motion3"
libraries = {
"": SubResource("AnimationLibrary_kfxj1")
}
autoplay = "motion3"
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(400, 300)
current = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
@@ -396,7 +395,7 @@ shadow_filter = 1
shadow_filter_smooth = 1.2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "rotate_directional_light"
libraries = {
"": SubResource("AnimationLibrary_6bket")
}
autoplay = "rotate_directional_light"

View File

@@ -27,22 +27,27 @@ window/stretch/aspect="expand"
[input]
toggle_directional_light={
"deadzone": 0.5,
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":68,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
toggle_point_lights={
"deadzone": 0.5,
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":80,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
cycle_directional_light_shadows_quality={
"deadzone": 0.5,
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":83,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
cycle_point_light_shadows_quality={
"deadzone": 0.5,
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":72,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"