-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.tscn
119 lines (98 loc) · 4.03 KB
/
player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[gd_scene load_steps=6 format=3 uid="uid://bxgiex2boc23g"]
[ext_resource type="Script" path="res://player.gd" id="1_g3lm8"]
[ext_resource type="FontFile" uid="uid://djycnlo5n88st" path="res://assets/Minecraftia-Regular.ttf" id="2_8ggpf"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_7whlb"]
height = 1.95
radius = 0.45
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8j2cv"]
transparency = 1
albedo_color = Color(1, 1, 1, 0.4)
[sub_resource type="BoxMesh" id="BoxMesh_cry2v"]
material = SubResource("StandardMaterial3D_8j2cv")
size = Vector3(1.01, 1.01, 1.01)
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("head", "cam", "RayCast", "highlighter", "coords_label", "fps_label", "gamemode_label", "targeted_label", "facing_label", "chunk_label")]
script = ExtResource("1_g3lm8")
jump = 8.5
walkSpeed = 5.0
sensitivity = 0.3
head = NodePath("head")
cam = NodePath("head/Camera3D")
RayCast = NodePath("head/Camera3D/RayCast3D")
highlighter = NodePath("highlighter")
coords_label = NodePath("UserInterface/MarginContainer/VBoxContainer/CoordinateLabel")
fps_label = NodePath("UserInterface/MarginContainer/VBoxContainer/FPSLabel")
gamemode_label = NodePath("UserInterface/MarginContainer/VBoxContainer/GameModeLabel")
targeted_label = NodePath("UserInterface/MarginContainer/VBoxContainer/TargetedLabel")
facing_label = NodePath("UserInterface/MarginContainer/VBoxContainer/FacingLabel")
chunk_label = NodePath("UserInterface/MarginContainer/VBoxContainer/ChunkLabel")
[node name="UserInterface" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect2" type="ColorRect" parent="UserInterface"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -1.0
offset_right = 8.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="UserInterface"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -1.0
offset_top = -8.0
offset_right = 1.0
offset_bottom = 8.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="UserInterface"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_constants/margin_left = 14
theme_override_constants/margin_top = 14
theme_override_constants/margin_right = 14
theme_override_constants/margin_bottom = 14
[node name="VBoxContainer" type="VBoxContainer" parent="UserInterface/MarginContainer"]
layout_mode = 2
[node name="FPSLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="CoordinateLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="ChunkLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="TargetedLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="FacingLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="GameModeLabel" type="Label" parent="UserInterface/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_8ggpf")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CylinderShape3D_7whlb")
[node name="head" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.607421, 0)
[node name="Camera3D" type="Camera3D" parent="head"]
[node name="RayCast3D" type="RayCast3D" parent="head/Camera3D"]
visible = false
target_position = Vector3(0, 0, -5)
[node name="highlighter" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_cry2v")