-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
120 lines (92 loc) · 2.8 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
120
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://assets/wind1.ogg" type="AudioStream" id=2]
[ext_resource path="res://assets/step1.wav" type="AudioStream" id=3]
[sub_resource type="CapsuleShape" id=1]
radius = 0.5
[sub_resource type="GDScript" id=2]
script/source = "extends Label
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _process(delta):
self.text=String(get_parent().get_parent().get_parent().translation.x)
# pass
"
[sub_resource type="GDScript" id=3]
script/source = "extends Label
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _process(delta):
self.text=String(get_parent().get_parent().get_parent().translation.y)
"
[sub_resource type="GDScript" id=4]
script/source = "extends Label
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _process(delta):
self.text=String(get_parent().get_parent().get_parent().translation.z)
"
[node name="Player" type="KinematicBody"]
collision_layer = 2
collision_mask = 3
script = ExtResource( 1 )
[node name="Collision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
shape = SubResource( 1 )
[node name="Head" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
[node name="Camera" type="Camera" parent="Head"]
current = true
near = 0.01
far = 150.0
[node name="Control" type="Control" parent="Head"]
visible = false
margin_left = 14.0
margin_top = 3.0
margin_right = 98.0
margin_bottom = 52.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Head/Control"]
margin_left = 5.35466
margin_top = 5.03968
margin_right = 45.3547
margin_bottom = 19.0397
text = "123"
script = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="Head/Control"]
margin_left = 5.35466
margin_top = 34.9628
margin_right = 45.3547
margin_bottom = 48.9628
text = "123"
script = SubResource( 3 )
[node name="Label3" type="Label" parent="Head/Control"]
margin_left = 6.92957
margin_top = 53.5466
margin_right = 46.9296
margin_bottom = 67.5466
text = "13"
script = SubResource( 4 )
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 2 )
max_db = -4.803
autoplay = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
volume_db = -9.296
pitch_scale = 0.8
[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
volume_db = -9.296
pitch_scale = 0.8