save code

This commit is contained in:
xsl
2025-11-15 21:38:00 +08:00
parent b793c4eb69
commit 1a766bbcc4
8 changed files with 228 additions and 3 deletions
+51
View File
@@ -0,0 +1,51 @@
[gd_scene load_steps=6 format=3 uid="uid://bo2qeryinphil"]
[ext_resource type="PackedScene" uid="uid://5qhvowm03lqg" path="res://scene/my_player2.tscn" id="1_qhexg"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_j2tch"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
[sub_resource type="Sky" id="Sky_s4405"]
sky_material = SubResource("ProceduralSkyMaterial_j2tch")
[sub_resource type="Environment" id="Environment_36wlx"]
background_mode = 2
sky = SubResource("Sky_s4405")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="BoxShape3D" id="BoxShape3D_s4405"]
size = Vector3(40, 0.5, 40)
[node name="level" type="Node3D"]
[node name="MyPlayer2" parent="." instance=ExtResource("1_qhexg")]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_36wlx")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 7.394389, 7.099562, 9.536743e-07)
light_color = Color(0.7263125, 0.7740616, 0.5067892, 1)
shadow_enabled = true
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 3)
[node name="Environment" type="Node3D" parent="."]
[node name="StaticBody3D" type="StaticBody3D" parent="Environment"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0)
[node name="CSGBox3D" type="CSGBox3D" parent="Environment/StaticBody3D"]
transform = Transform3D(40, 0, 0, 0, 0.5, 0, 0, 0, 40, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/StaticBody3D"]
shape = SubResource("BoxShape3D_s4405")
[node name="Label" type="Label" parent="."]
offset_right = 400.0
offset_bottom = 150.0
theme_override_font_sizes/font_size = 32
text = "ASDF"
+21
View File
@@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=3 uid="uid://5qhvowm03lqg"]
[ext_resource type="Script" uid="uid://c8xqu4vvon4sg" path="res://MyPlayer.cs" id="1_2a064"]
[ext_resource type="PackedScene" uid="uid://dfp1cuy14cj5p" path="res://actor/girl.tscn" id="2_i8k2p"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kak5s"]
[node name="MyPlayer2" type="CharacterBody3D"]
script = ExtResource("1_2a064")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_kak5s")
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
billboard = 1
text = "我是3D 显示的文字"
font_size = 48
[node name="godette" parent="." instance=ExtResource("2_i8k2p")]