1 | [gd_scene load_steps=7 format=2]
|
---|
2 |
|
---|
3 | [ext_resource path="res://Player.gd" type="Script" id=1]
|
---|
4 | [ext_resource path="res://Testures/Crosshair/Crosshair.png" type="Texture" id=2]
|
---|
5 | [ext_resource path="res://Testures/Interface/Man.png" type="Texture" id=3]
|
---|
6 |
|
---|
7 | [sub_resource type="CapsuleMesh" id=1]
|
---|
8 | mid_height = 3.0
|
---|
9 |
|
---|
10 | [sub_resource type="CapsuleShape" id=2]
|
---|
11 | height = 3.0
|
---|
12 |
|
---|
13 | [sub_resource type="CylinderShape" id=3]
|
---|
14 |
|
---|
15 | [node name="Player" type="KinematicBody"]
|
---|
16 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
|
---|
17 | script = ExtResource( 1 )
|
---|
18 |
|
---|
19 | [node name="BodyMesh" type="MeshInstance" parent="."]
|
---|
20 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
21 | mesh = SubResource( 1 )
|
---|
22 | material/0 = null
|
---|
23 |
|
---|
24 | [node name="BodyCollison" type="CollisionShape" parent="."]
|
---|
25 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
26 | shape = SubResource( 2 )
|
---|
27 |
|
---|
28 | [node name="Foot" type="CollisionShape" parent="."]
|
---|
29 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 0 )
|
---|
30 | shape = SubResource( 3 )
|
---|
31 |
|
---|
32 | [node name="Head" type="Spatial" parent="."]
|
---|
33 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
|
---|
34 |
|
---|
35 | [node name="Camera" type="Camera" parent="Head"]
|
---|
36 |
|
---|
37 | [node name="GroundCheck" type="RayCast" parent="."]
|
---|
38 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
|
---|
39 | enabled = true
|
---|
40 | cast_to = Vector3( 0, -1.5, 0 )
|
---|
41 |
|
---|
42 | [node name="HUD" type="Control" parent="."]
|
---|
43 | anchor_right = 1.0
|
---|
44 | anchor_bottom = 1.0
|
---|
45 | margin_right = 4.0
|
---|
46 | __meta__ = {
|
---|
47 | "_edit_use_anchors_": false
|
---|
48 | }
|
---|
49 |
|
---|
50 | [node name="Crosshair" type="Control" parent="HUD"]
|
---|
51 | anchor_left = 0.5
|
---|
52 | anchor_top = 0.5
|
---|
53 | anchor_right = 0.5
|
---|
54 | anchor_bottom = 0.5
|
---|
55 | margin_left = -21.0
|
---|
56 | margin_top = -21.0
|
---|
57 | margin_right = 21.0
|
---|
58 | margin_bottom = 21.0
|
---|
59 | __meta__ = {
|
---|
60 | "_edit_use_anchors_": false
|
---|
61 | }
|
---|
62 |
|
---|
63 | [node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
|
---|
64 | anchor_right = 0.5
|
---|
65 | anchor_bottom = 0.5
|
---|
66 | margin_right = 40.0
|
---|
67 | margin_bottom = 40.0
|
---|
68 | texture = ExtResource( 2 )
|
---|
69 |
|
---|
70 | [node name="Control" type="Control" parent="HUD"]
|
---|
71 | anchor_top = 1.0
|
---|
72 | anchor_right = 0.5
|
---|
73 | anchor_bottom = 1.0
|
---|
74 | margin_left = -0.28
|
---|
75 | margin_top = 542.0
|
---|
76 | margin_right = -913.0
|
---|
77 | margin_bottom = -5398.0
|
---|
78 |
|
---|
79 | [node name="TextureRect" type="TextureRect" parent="HUD/Control"]
|
---|
80 | anchor_right = 0.5
|
---|
81 | anchor_bottom = 0.5
|
---|
82 | margin_left = 5.89191
|
---|
83 | margin_top = -733.919
|
---|
84 | margin_right = 107.892
|
---|
85 | margin_bottom = -546.919
|
---|
86 | texture = ExtResource( 3 )
|
---|
87 | __meta__ = {
|
---|
88 | "_edit_use_anchors_": false
|
---|
89 | }
|
---|