1 | [gd_scene load_steps=11 format=2]
|
---|
2 |
|
---|
3 | [ext_resource path="res://Player.gd" type="Script" id=1]
|
---|
4 | [ext_resource path="res://Textures/Crosshair/Crosshair.png" type="Texture" id=2]
|
---|
5 | [ext_resource path="res://Textures/Interface/Man.png" type="Texture" id=3]
|
---|
6 | [ext_resource path="res://Textures/Interface/FallDamage.png" type="Texture" id=4]
|
---|
7 | [ext_resource path="res://Camera.gd" type="Script" id=5]
|
---|
8 | [ext_resource path="res://Stats/Health/healthbar.tres" type="Theme" id=6]
|
---|
9 | [ext_resource path="res://Stats/Stamina/Stamina.tres" type="Theme" id=7]
|
---|
10 |
|
---|
11 | [sub_resource type="CapsuleMesh" id=1]
|
---|
12 | radius = 0.5
|
---|
13 |
|
---|
14 | [sub_resource type="CapsuleShape" id=2]
|
---|
15 | radius = 0.5
|
---|
16 |
|
---|
17 | [sub_resource type="Animation" id=3]
|
---|
18 | resource_name = "FallDamage"
|
---|
19 | length = 0.6
|
---|
20 | tracks/0/type = "value"
|
---|
21 | tracks/0/path = NodePath("../HUD/Control/FallDamage:modulate")
|
---|
22 | tracks/0/interp = 1
|
---|
23 | tracks/0/loop_wrap = true
|
---|
24 | tracks/0/imported = false
|
---|
25 | tracks/0/enabled = true
|
---|
26 | tracks/0/keys = {
|
---|
27 | "times": PoolRealArray( 0, 0.2, 0.6 ),
|
---|
28 | "transitions": PoolRealArray( 1, 1, 1 ),
|
---|
29 | "update": 0,
|
---|
30 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
---|
31 | }
|
---|
32 |
|
---|
33 | [node name="Player" type="KinematicBody"]
|
---|
34 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
|
---|
35 | script = ExtResource( 1 )
|
---|
36 |
|
---|
37 | [node name="BodyMesh" type="MeshInstance" parent="."]
|
---|
38 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
39 | mesh = SubResource( 1 )
|
---|
40 | material/0 = null
|
---|
41 |
|
---|
42 | [node name="BodyCollison" type="CollisionShape" parent="."]
|
---|
43 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
44 | shape = SubResource( 2 )
|
---|
45 |
|
---|
46 | [node name="Head" type="Spatial" parent="."]
|
---|
47 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
|
---|
48 |
|
---|
49 | [node name="Camera" type="Camera" parent="Head"]
|
---|
50 | script = ExtResource( 5 )
|
---|
51 |
|
---|
52 | [node name="AnimationPlayer" type="AnimationPlayer" parent="Head"]
|
---|
53 | anims/FallDamage = SubResource( 3 )
|
---|
54 |
|
---|
55 | [node name="HUD" type="Control" parent="."]
|
---|
56 | anchor_right = 1.0
|
---|
57 | anchor_bottom = 1.0
|
---|
58 | margin_top = -0.314941
|
---|
59 | margin_right = 4.0
|
---|
60 | margin_bottom = -0.314941
|
---|
61 | __meta__ = {
|
---|
62 | "_edit_use_anchors_": false
|
---|
63 | }
|
---|
64 |
|
---|
65 | [node name="Crosshair" type="Control" parent="HUD"]
|
---|
66 | anchor_left = 0.5
|
---|
67 | anchor_top = 0.5
|
---|
68 | anchor_right = 0.5
|
---|
69 | anchor_bottom = 0.5
|
---|
70 | margin_left = -21.0
|
---|
71 | margin_top = -21.0
|
---|
72 | margin_right = 21.0
|
---|
73 | margin_bottom = 21.0
|
---|
74 | __meta__ = {
|
---|
75 | "_edit_use_anchors_": false
|
---|
76 | }
|
---|
77 |
|
---|
78 | [node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
|
---|
79 | anchor_right = 0.5
|
---|
80 | anchor_bottom = 0.5
|
---|
81 | margin_right = 40.0
|
---|
82 | margin_bottom = 40.0
|
---|
83 | texture = ExtResource( 2 )
|
---|
84 | __meta__ = {
|
---|
85 | "_edit_use_anchors_": false
|
---|
86 | }
|
---|
87 |
|
---|
88 | [node name="Control" type="Control" parent="HUD"]
|
---|
89 | anchor_top = 1.0
|
---|
90 | anchor_right = 0.5
|
---|
91 | anchor_bottom = 1.0
|
---|
92 | margin_left = -0.445442
|
---|
93 | margin_top = 542.0
|
---|
94 | margin_right = -514.445
|
---|
95 | margin_bottom = 542.0
|
---|
96 | __meta__ = {
|
---|
97 | "_edit_use_anchors_": false
|
---|
98 | }
|
---|
99 |
|
---|
100 | [node name="Man" type="TextureRect" parent="HUD/Control"]
|
---|
101 | light_mask = 2
|
---|
102 | anchor_right = 0.5
|
---|
103 | anchor_bottom = 0.5
|
---|
104 | margin_left = 5.89191
|
---|
105 | margin_top = -733.919
|
---|
106 | margin_right = 107.892
|
---|
107 | margin_bottom = -546.919
|
---|
108 | texture = ExtResource( 3 )
|
---|
109 | __meta__ = {
|
---|
110 | "_edit_use_anchors_": false
|
---|
111 | }
|
---|
112 |
|
---|
113 | [node name="FallDamage" type="TextureRect" parent="HUD/Control"]
|
---|
114 | modulate = Color( 1, 1, 1, 0 )
|
---|
115 | anchor_right = 0.5
|
---|
116 | anchor_bottom = 0.5
|
---|
117 | margin_left = 22.8588
|
---|
118 | margin_top = -573.435
|
---|
119 | margin_right = 90.8588
|
---|
120 | margin_bottom = -547.435
|
---|
121 | texture = ExtResource( 4 )
|
---|
122 | __meta__ = {
|
---|
123 | "_edit_use_anchors_": false
|
---|
124 | }
|
---|
125 |
|
---|
126 | [node name="HealthBar" type="ProgressBar" parent="HUD/Control"]
|
---|
127 | margin_left = 750.0
|
---|
128 | margin_top = -579.0
|
---|
129 | margin_right = 1013.0
|
---|
130 | margin_bottom = -550.0
|
---|
131 | theme = ExtResource( 6 )
|
---|
132 | max_value = 101.6
|
---|
133 | value = 100.0
|
---|
134 | rounded = true
|
---|
135 | percent_visible = false
|
---|
136 | __meta__ = {
|
---|
137 | "_edit_use_anchors_": false
|
---|
138 | }
|
---|
139 |
|
---|
140 | [node name="StaminaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
141 | margin_left = 749.74
|
---|
142 | margin_top = -612.298
|
---|
143 | margin_right = 1012.74
|
---|
144 | margin_bottom = -583.298
|
---|
145 | theme = ExtResource( 7 )
|
---|
146 | max_value = 101.6
|
---|
147 | value = 100.0
|
---|
148 | rounded = true
|
---|
149 | percent_visible = false
|
---|
150 | __meta__ = {
|
---|
151 | "_edit_use_anchors_": false
|
---|
152 | }
|
---|