1 | [gd_scene load_steps=14 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/staminabar.tres" type="Theme" id=6]
|
---|
9 | [ext_resource path="res://Stats/lifeforcebar.tres" type="Theme" id=7]
|
---|
10 | [ext_resource path="res://Stats/manabar.tres" type="Theme" id=8]
|
---|
11 | [ext_resource path="res://Stats/xpbar.tres" type="Theme" id=9]
|
---|
12 | [ext_resource path="res://Stats/healthbar.tres" type="Theme" id=10]
|
---|
13 |
|
---|
14 | [sub_resource type="CapsuleMesh" id=1]
|
---|
15 | radius = 0.5
|
---|
16 |
|
---|
17 | [sub_resource type="CapsuleShape" id=2]
|
---|
18 | radius = 0.5
|
---|
19 | height = 0.64793
|
---|
20 |
|
---|
21 | [sub_resource type="Animation" id=3]
|
---|
22 | length = 0.6
|
---|
23 | tracks/0/type = "value"
|
---|
24 | tracks/0/path = NodePath("../HUD/Control/FallDamage:modulate")
|
---|
25 | tracks/0/interp = 1
|
---|
26 | tracks/0/loop_wrap = true
|
---|
27 | tracks/0/imported = false
|
---|
28 | tracks/0/enabled = true
|
---|
29 | tracks/0/keys = {
|
---|
30 | "times": PoolRealArray( 0, 0.2, 0.6 ),
|
---|
31 | "transitions": PoolRealArray( 1, 1, 1 ),
|
---|
32 | "update": 0,
|
---|
33 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
---|
34 | }
|
---|
35 |
|
---|
36 | [node name="Player" type="KinematicBody"]
|
---|
37 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
|
---|
38 | script = ExtResource( 1 )
|
---|
39 |
|
---|
40 | [node name="BodyMesh" type="MeshInstance" parent="."]
|
---|
41 | transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
|
---|
42 | mesh = SubResource( 1 )
|
---|
43 | material/0 = null
|
---|
44 |
|
---|
45 | [node name="BodyCollison" type="CollisionShape" parent="."]
|
---|
46 | transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.282937, 0 )
|
---|
47 | shape = SubResource( 2 )
|
---|
48 |
|
---|
49 | [node name="Leg" type="CollisionShape" parent="."]
|
---|
50 | transform = Transform( -1.22191e-07, -0.75, 4.37114e-08, 0, -3.27835e-08, -1, 0.75, -1.22191e-07, 7.12149e-15, 0, -0.280967, 0 )
|
---|
51 | shape = SubResource( 2 )
|
---|
52 |
|
---|
53 | [node name="Foot" type="Spatial" parent="Leg"]
|
---|
54 | transform = Transform( -8.14603e-08, 0, 0.5, 8.37124e-16, 0.5, 0, -0.5, 3.55271e-15, -8.14603e-08, 3.19949e-08, 0, 0.147287 )
|
---|
55 |
|
---|
56 | [node name="FootRay" type="RayCast" parent="Leg/Foot"]
|
---|
57 | transform = Transform( 1, 1.67424e-15, 2.84217e-14, 1.67425e-15, 1, 0, 0, 0, 1, -0.637594, 3.71605e-08, -1.03876e-07 )
|
---|
58 | enabled = true
|
---|
59 | cast_to = Vector3( 0, 1.32, 0 )
|
---|
60 |
|
---|
61 | [node name="Head" type="Spatial" parent="."]
|
---|
62 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
|
---|
63 |
|
---|
64 | [node name="Camera" type="Camera" parent="Head"]
|
---|
65 | script = ExtResource( 5 )
|
---|
66 |
|
---|
67 | [node name="AnimationPlayer" type="AnimationPlayer" parent="Head"]
|
---|
68 | anims/FallDamage = SubResource( 3 )
|
---|
69 |
|
---|
70 | [node name="HUD" type="Control" parent="."]
|
---|
71 | anchor_right = 1.0
|
---|
72 | anchor_bottom = 1.0
|
---|
73 | margin_left = 0.0867312
|
---|
74 | margin_top = -1.22662
|
---|
75 | margin_right = 4.08679
|
---|
76 | margin_bottom = -1.22662
|
---|
77 | __meta__ = {
|
---|
78 | "_edit_use_anchors_": false
|
---|
79 | }
|
---|
80 |
|
---|
81 | [node name="Crosshair" type="Control" parent="HUD"]
|
---|
82 | anchor_left = 0.5
|
---|
83 | anchor_top = 0.5
|
---|
84 | anchor_right = 0.5
|
---|
85 | anchor_bottom = 0.5
|
---|
86 | margin_left = -21.0
|
---|
87 | margin_top = -21.0
|
---|
88 | margin_right = 21.0
|
---|
89 | margin_bottom = 21.0
|
---|
90 | __meta__ = {
|
---|
91 | "_edit_use_anchors_": false
|
---|
92 | }
|
---|
93 |
|
---|
94 | [node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
|
---|
95 | anchor_right = 0.5
|
---|
96 | anchor_bottom = 0.5
|
---|
97 | margin_left = -1.12244
|
---|
98 | margin_top = -1.12244
|
---|
99 | margin_right = 38.8776
|
---|
100 | margin_bottom = 38.8776
|
---|
101 | texture = ExtResource( 2 )
|
---|
102 | __meta__ = {
|
---|
103 | "_edit_use_anchors_": false
|
---|
104 | }
|
---|
105 |
|
---|
106 | [node name="Control" type="Control" parent="HUD"]
|
---|
107 | anchor_top = 1.0
|
---|
108 | anchor_right = 0.5
|
---|
109 | anchor_bottom = 1.0
|
---|
110 | margin_left = -0.445442
|
---|
111 | margin_top = 542.0
|
---|
112 | margin_right = -514.445
|
---|
113 | margin_bottom = 542.0
|
---|
114 | __meta__ = {
|
---|
115 | "_edit_use_anchors_": false
|
---|
116 | }
|
---|
117 |
|
---|
118 | [node name="Man" type="TextureRect" parent="HUD/Control"]
|
---|
119 | light_mask = 2
|
---|
120 | anchor_right = 0.5
|
---|
121 | anchor_bottom = 0.5
|
---|
122 | margin_left = 7.61129
|
---|
123 | margin_top = -771.506
|
---|
124 | margin_right = 109.611
|
---|
125 | margin_bottom = -584.506
|
---|
126 | texture = ExtResource( 3 )
|
---|
127 | __meta__ = {
|
---|
128 | "_edit_use_anchors_": false
|
---|
129 | }
|
---|
130 |
|
---|
131 | [node name="FallDamage" type="TextureRect" parent="HUD/Control"]
|
---|
132 | modulate = Color( 1, 1, 1, 0 )
|
---|
133 | anchor_right = 0.5
|
---|
134 | anchor_bottom = 0.5
|
---|
135 | margin_left = 24.8588
|
---|
136 | margin_top = -609.435
|
---|
137 | margin_right = 92.8588
|
---|
138 | margin_bottom = -583.435
|
---|
139 | texture = ExtResource( 4 )
|
---|
140 | __meta__ = {
|
---|
141 | "_edit_use_anchors_": false
|
---|
142 | }
|
---|
143 |
|
---|
144 | [node name="HealthBar" type="ProgressBar" parent="HUD/Control"]
|
---|
145 | anchor_left = 2.0
|
---|
146 | anchor_right = 2.0
|
---|
147 | anchor_bottom = 1.0
|
---|
148 | margin_left = 744.7
|
---|
149 | margin_top = -614.977
|
---|
150 | margin_right = 1007.7
|
---|
151 | margin_bottom = -585.977
|
---|
152 | theme = ExtResource( 10 )
|
---|
153 | max_value = 101.6
|
---|
154 | value = 100.0
|
---|
155 | rounded = true
|
---|
156 | percent_visible = false
|
---|
157 | __meta__ = {
|
---|
158 | "_edit_use_anchors_": false
|
---|
159 | }
|
---|
160 |
|
---|
161 | [node name="StaminaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
162 | anchor_left = 2.0
|
---|
163 | anchor_right = 2.0
|
---|
164 | anchor_bottom = 1.0
|
---|
165 | margin_left = 744.653
|
---|
166 | margin_top = -649.119
|
---|
167 | margin_right = 1007.65
|
---|
168 | margin_bottom = -620.119
|
---|
169 | size_flags_horizontal = 0
|
---|
170 | theme = ExtResource( 6 )
|
---|
171 | max_value = 101.6
|
---|
172 | value = 100.0
|
---|
173 | rounded = true
|
---|
174 | percent_visible = false
|
---|
175 | __meta__ = {
|
---|
176 | "_edit_use_anchors_": false
|
---|
177 | }
|
---|
178 |
|
---|
179 | [node name="ManaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
180 | anchor_left = 2.0
|
---|
181 | anchor_right = 2.0
|
---|
182 | anchor_bottom = 1.0
|
---|
183 | margin_left = 744.653
|
---|
184 | margin_top = -682.6
|
---|
185 | margin_right = 1007.65
|
---|
186 | margin_bottom = -653.6
|
---|
187 | size_flags_horizontal = 0
|
---|
188 | theme = ExtResource( 8 )
|
---|
189 | max_value = 101.6
|
---|
190 | value = 100.0
|
---|
191 | rounded = true
|
---|
192 | percent_visible = false
|
---|
193 | __meta__ = {
|
---|
194 | "_edit_use_anchors_": false
|
---|
195 | }
|
---|
196 |
|
---|
197 | [node name="LifeforceBar" type="ProgressBar" parent="HUD/Control"]
|
---|
198 | anchor_left = 2.0
|
---|
199 | anchor_right = 2.0
|
---|
200 | anchor_bottom = 1.0
|
---|
201 | margin_left = 744.934
|
---|
202 | margin_top = -580.881
|
---|
203 | margin_right = 1007.93
|
---|
204 | margin_bottom = -551.881
|
---|
205 | size_flags_horizontal = 0
|
---|
206 | theme = ExtResource( 7 )
|
---|
207 | max_value = 101.6
|
---|
208 | value = 100.0
|
---|
209 | rounded = true
|
---|
210 | percent_visible = false
|
---|
211 | __meta__ = {
|
---|
212 | "_edit_use_anchors_": false
|
---|
213 | }
|
---|
214 |
|
---|
215 | [node name="XPBar" type="ProgressBar" parent="HUD/Control"]
|
---|
216 | anchor_bottom = 0.5
|
---|
217 | margin_left = 7.99913
|
---|
218 | margin_top = -580.782
|
---|
219 | margin_right = 109.999
|
---|
220 | margin_bottom = -551.782
|
---|
221 | size_flags_horizontal = 0
|
---|
222 | theme = ExtResource( 9 )
|
---|
223 | max_value = 105.0
|
---|
224 | rounded = true
|
---|
225 | percent_visible = false
|
---|
226 | __meta__ = {
|
---|
227 | "_edit_use_anchors_": false
|
---|
228 | }
|
---|