TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.6 KiB
85 lines
2.6 KiB
[gd_scene load_steps=8 format=3 uid="uid://typephp_minecraft_demo"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/voxel_world.gd" id="1_world"]
|
|
[ext_resource type="Script" path="res://scripts/player_controller.gd" id="2_player"]
|
|
[ext_resource type="GDExtension" path="res://typephp_bridge.gdextension" id="3_ext"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_1"]
|
|
sky_top_color = Color(0.18, 0.5, 0.94, 1)
|
|
sky_horizon_color = Color(0.72, 0.88, 1, 1)
|
|
ground_bottom_color = Color(0.22, 0.35, 0.2, 1)
|
|
ground_horizon_color = Color(0.62, 0.74, 0.55, 1)
|
|
|
|
[sub_resource type="Sky" id="Sky_1"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_1")
|
|
|
|
[sub_resource type="Environment" id="Environment_1"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_1")
|
|
ambient_light_source = 2
|
|
ambient_light_color = Color(0.68, 0.74, 0.82, 1)
|
|
ambient_light_energy = 0.72
|
|
fog_enabled = true
|
|
fog_light_color = Color(0.74, 0.82, 0.9, 1)
|
|
fog_density = 0.006
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
|
|
radius = 0.35
|
|
height = 1.7
|
|
|
|
[node name="Main" type="Node3D"]
|
|
|
|
[node name="TypePhpBridge" type="TypePhpBridge" parent="."]
|
|
|
|
[node name="World" type="Node3D" parent="."]
|
|
script = ExtResource("1_world")
|
|
bridge_path = NodePath("../TypePhpBridge")
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.766044, -0.321394, 0.55667, 0, 0.866025, 0.5, -0.642788, -0.383022, 0.663414, 0, 18, 0)
|
|
light_color = Color(1, 0.96, 0.88, 1)
|
|
light_energy = 2.15
|
|
shadow_enabled = true
|
|
shadow_blur = 1.2
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_1")
|
|
|
|
[node name="Player" type="CharacterBody3D" parent="."]
|
|
script = ExtResource("2_player")
|
|
world_path = NodePath("../World")
|
|
|
|
[node name="CameraPivot" type="Node3D" parent="Player"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Player/CameraPivot"]
|
|
current = true
|
|
fov = 75.0
|
|
near = 0.05
|
|
far = 160.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
|
|
shape = SubResource("CapsuleShape3D_1")
|
|
|
|
[node name="Hud" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Crosshair" type="Label" parent="Hud"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -6.0
|
|
offset_top = -11.0
|
|
offset_right = 6.0
|
|
offset_bottom = 11.0
|
|
text = "+"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Help" type="Label" parent="Hud"]
|
|
offset_left = 20.0
|
|
offset_top = 18.0
|
|
offset_right = 680.0
|
|
offset_bottom = 120.0
|
|
text = "WASD 移动 Space 跳跃 鼠标左键挖方块 右键放方块 Esc 释放/捕获鼠标"
|
|
|