forked from xen-42/Minecraft-Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.tscn
47 lines (36 loc) · 1.27 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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://Crosshair.gd" type="Script" id=2]
[ext_resource path="res://assets/crosshair.png" type="Texture" id=3]
[sub_resource type="CapsuleMesh" id=1]
radius = 0.5
mid_height = 0.8
[sub_resource type="CylinderShape" id=2]
radius = 0.5
height = 1.8
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
mesh = SubResource( 1 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 2 )
[node name="CameraBase" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.861538, 0 )
[node name="Camera" type="Camera" parent="CameraBase"]
far = 500.0
[node name="RayCast" type="RayCast" parent="CameraBase/Camera"]
enabled = true
cast_to = Vector3( 0, 0, -5 )
[node name="Sprite" type="Sprite" parent="CameraBase/Camera"]
scale = Vector2( 2, 2 )
texture = ExtResource( 3 )
script = ExtResource( 2 )
[node name="Label" type="Label" parent="CameraBase/Camera"]
margin_right = 40.0
margin_bottom = 14.0
text = "Block: "
__meta__ = {
"_edit_use_anchors_": false
}