Files
agame/world/main.tscn
T
2026-09-22 00:07:58 +08:00

48 lines
1.8 KiB
Plaintext

[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"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hyim0"]
size = Vector3(40, 0.5, 40)
[sub_resource type="PlaneMesh" id="PlaneMesh_4f7fj"]
size = Vector2(40, 40)
subdivide_width = 8
subdivide_depth = 8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_spvjk"]
albedo_color = Color(0.5529412, 0.5803922, 0.61960787, 1)
roughness = 0.9
[sub_resource type="Environment" id="Environment_gu74f"]
background_mode = 2
sky = ExtResource("2_cartoon")
ambient_light_source = 3
reflected_light_source = 2
[node name="Main" type="Node3D" unique_id=58155864]
[node name="Ground" type="StaticBody3D" parent="." unique_id=305091665]
[node name="GroundShape" type="CollisionShape3D" parent="Ground" unique_id=8315700]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0)
shape = SubResource("BoxShape3D_hyim0")
[node name="GroundMesh" type="MeshInstance3D" parent="Ground" unique_id=51344137]
mesh = SubResource("PlaneMesh_4f7fj")
surface_material_override/0 = SubResource("StandardMaterial3D_spvjk")
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=910400852]
transform = Transform3D(0.8660248, 0.3830344, -0.32138094, 0, 0.6427605, 0.76606715, 0.5000011, -0.66343313, 0.5566465, 0, 0, 0)
light_color = Color(1, 0.97, 0.9, 1)
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")