简易联机实现

This commit is contained in:
2026-09-22 16:56:35 +08:00
parent 020ab88606
commit db60e35766
12 changed files with 434 additions and 5 deletions
+6 -5
View File
@@ -1,7 +1,7 @@
[gd_scene format=3 uid="uid://bp8l1uwgshc86"]
[ext_resource type="PackedScene" uid="uid://bekuuw153mv03" path="res://player/player.tscn" id="1_gjxf3"]
[ext_resource type="Sky" path="res://world/sky/cartoon_sky.tres" id="2_cartoon"]
[ext_resource type="Script" uid="uid://11rbhffe5dhv" path="res://world/main.gd" id="1_hyim0"]
[ext_resource type="Sky" uid="uid://bi632suyifms5" path="res://world/sky/cartoon_sky.tres" id="2_cartoon"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hyim0"]
size = Vector3(40, 0.5, 40)
@@ -22,6 +22,7 @@ ambient_light_source = 3
reflected_light_source = 2
[node name="Main" type="Node3D" unique_id=58155864]
script = ExtResource("1_hyim0")
[node name="Ground" type="StaticBody3D" parent="." unique_id=305091665]
@@ -40,8 +41,8 @@ shadow_enabled = true
directional_shadow_blend_splits = true
directional_shadow_max_distance = 40.0
[node name="Player" parent="." unique_id=869687860 instance=ExtResource("1_gjxf3")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
[node name="Environment" type="WorldEnvironment" parent="." unique_id=794103784]
environment = SubResource("Environment_gu74f")
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="." unique_id=1410622657]
spawn_path = NodePath("..")