[3c8ca52] | 1 | [gd_scene load_steps=14 format=2]
|
---|
[f7b09c8] | 2 |
|
---|
| 3 | [ext_resource path="res://Player.gd" type="Script" id=1]
|
---|
[70fb6d4] | 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]
|
---|
[3c8ca52] | 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]
|
---|
[f7b09c8] | 13 |
|
---|
| 14 | [sub_resource type="CapsuleMesh" id=1]
|
---|
[70fb6d4] | 15 | radius = 0.5
|
---|
[f7b09c8] | 16 |
|
---|
| 17 | [sub_resource type="CapsuleShape" id=2]
|
---|
[70fb6d4] | 18 | radius = 0.5
|
---|
| 19 |
|
---|
[5a9a237] | 20 | [sub_resource type="Animation" id=4]
|
---|
[70fb6d4] | 21 | length = 0.6
|
---|
| 22 | tracks/0/type = "value"
|
---|
| 23 | tracks/0/path = NodePath("../HUD/Control/FallDamage:modulate")
|
---|
| 24 | tracks/0/interp = 1
|
---|
| 25 | tracks/0/loop_wrap = true
|
---|
| 26 | tracks/0/imported = false
|
---|
| 27 | tracks/0/enabled = true
|
---|
| 28 | tracks/0/keys = {
|
---|
| 29 | "times": PoolRealArray( 0, 0.2, 0.6 ),
|
---|
| 30 | "transitions": PoolRealArray( 1, 1, 1 ),
|
---|
| 31 | "update": 0,
|
---|
| 32 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
---|
| 33 | }
|
---|
[f7b09c8] | 34 |
|
---|
| 35 | [node name="Player" type="KinematicBody"]
|
---|
| 36 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
|
---|
| 37 | script = ExtResource( 1 )
|
---|
| 38 |
|
---|
| 39 | [node name="BodyMesh" type="MeshInstance" parent="."]
|
---|
[c8c895d] | 40 | transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
|
---|
[f7b09c8] | 41 | mesh = SubResource( 1 )
|
---|
| 42 | material/0 = null
|
---|
| 43 |
|
---|
| 44 | [node name="BodyCollison" type="CollisionShape" parent="."]
|
---|
| 45 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
| 46 | shape = SubResource( 2 )
|
---|
| 47 |
|
---|
[5a9a237] | 48 | [node name="FootCheck" type="Spatial" parent="."]
|
---|
| 49 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0 )
|
---|
| 50 |
|
---|
| 51 | [node name="zpray" type="RayCast" parent="FootCheck"]
|
---|
| 52 | enabled = true
|
---|
| 53 | cast_to = Vector3( 0, 0, 0.55 )
|
---|
| 54 |
|
---|
| 55 | [node name="znray" type="RayCast" parent="FootCheck"]
|
---|
| 56 | enabled = true
|
---|
| 57 | cast_to = Vector3( 0, 0, -0.55 )
|
---|
| 58 |
|
---|
| 59 | [node name="xpray" type="RayCast" parent="FootCheck"]
|
---|
| 60 | enabled = true
|
---|
| 61 | cast_to = Vector3( 0.55, 0, 0 )
|
---|
| 62 |
|
---|
| 63 | [node name="xnray" type="RayCast" parent="FootCheck"]
|
---|
| 64 | enabled = true
|
---|
| 65 | cast_to = Vector3( -0.55, 0, 0 )
|
---|
| 66 |
|
---|
| 67 | [node name="znxnray" type="RayCast" parent="FootCheck"]
|
---|
| 68 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 69 | enabled = true
|
---|
| 70 | cast_to = Vector3( -0.39, 0, -0.39 )
|
---|
| 71 |
|
---|
| 72 | [node name="zpxnray" type="RayCast" parent="FootCheck"]
|
---|
| 73 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 74 | enabled = true
|
---|
| 75 | cast_to = Vector3( -0.39, 0, 0.39 )
|
---|
| 76 |
|
---|
| 77 | [node name="znxpray" type="RayCast" parent="FootCheck"]
|
---|
| 78 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 79 | enabled = true
|
---|
| 80 | cast_to = Vector3( 0.39, 0, -0.39 )
|
---|
| 81 |
|
---|
| 82 | [node name="zpxpray" type="RayCast" parent="FootCheck"]
|
---|
| 83 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 84 | enabled = true
|
---|
| 85 | cast_to = Vector3( 0.39, 0, 0.39 )
|
---|
| 86 |
|
---|
| 87 | [node name="StepCheck" type="Spatial" parent="."]
|
---|
| 88 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45, 0 )
|
---|
| 89 |
|
---|
| 90 | [node name="zpray" type="RayCast" parent="StepCheck"]
|
---|
| 91 | enabled = true
|
---|
| 92 | cast_to = Vector3( 0, 0, 0.55 )
|
---|
| 93 |
|
---|
| 94 | [node name="znray" type="RayCast" parent="StepCheck"]
|
---|
| 95 | enabled = true
|
---|
| 96 | cast_to = Vector3( 0, 0, -0.55 )
|
---|
| 97 |
|
---|
| 98 | [node name="xpray" type="RayCast" parent="StepCheck"]
|
---|
| 99 | enabled = true
|
---|
| 100 | cast_to = Vector3( 0.55, 0, 0 )
|
---|
| 101 |
|
---|
| 102 | [node name="xnray" type="RayCast" parent="StepCheck"]
|
---|
| 103 | enabled = true
|
---|
| 104 | cast_to = Vector3( -0.55, 0, 0 )
|
---|
| 105 |
|
---|
| 106 | [node name="znxnray" type="RayCast" parent="StepCheck"]
|
---|
| 107 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 108 | enabled = true
|
---|
| 109 | cast_to = Vector3( -0.39, 0, -0.39 )
|
---|
| 110 |
|
---|
| 111 | [node name="zpxnray" type="RayCast" parent="StepCheck"]
|
---|
| 112 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 113 | enabled = true
|
---|
| 114 | cast_to = Vector3( -0.39, 0, 0.39 )
|
---|
| 115 |
|
---|
| 116 | [node name="znxpray" type="RayCast" parent="StepCheck"]
|
---|
| 117 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 118 | enabled = true
|
---|
| 119 | cast_to = Vector3( 0.39, 0, -0.39 )
|
---|
| 120 |
|
---|
| 121 | [node name="zpxpray" type="RayCast" parent="StepCheck"]
|
---|
| 122 | transform = Transform( 0.997504, 0, -0.0706096, 0, 1, 0, 0.0706096, 0, 0.997504, 0, 0, 0 )
|
---|
| 123 | enabled = true
|
---|
| 124 | cast_to = Vector3( 0.39, 0, 0.39 )
|
---|
| 125 |
|
---|
[f7b09c8] | 126 | [node name="Head" type="Spatial" parent="."]
|
---|
[70fb6d4] | 127 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
|
---|
[f7b09c8] | 128 |
|
---|
| 129 | [node name="Camera" type="Camera" parent="Head"]
|
---|
[70fb6d4] | 130 | script = ExtResource( 5 )
|
---|
[f7b09c8] | 131 |
|
---|
[70fb6d4] | 132 | [node name="AnimationPlayer" type="AnimationPlayer" parent="Head"]
|
---|
[5a9a237] | 133 | anims/FallDamage = SubResource( 4 )
|
---|
[f7b09c8] | 134 |
|
---|
| 135 | [node name="HUD" type="Control" parent="."]
|
---|
| 136 | anchor_right = 1.0
|
---|
| 137 | anchor_bottom = 1.0
|
---|
[3c8ca52] | 138 | margin_left = 0.0867312
|
---|
| 139 | margin_top = -1.22662
|
---|
| 140 | margin_right = 4.08679
|
---|
| 141 | margin_bottom = -1.22662
|
---|
[f7b09c8] | 142 | __meta__ = {
|
---|
| 143 | "_edit_use_anchors_": false
|
---|
| 144 | }
|
---|
| 145 |
|
---|
| 146 | [node name="Crosshair" type="Control" parent="HUD"]
|
---|
| 147 | anchor_left = 0.5
|
---|
| 148 | anchor_top = 0.5
|
---|
| 149 | anchor_right = 0.5
|
---|
| 150 | anchor_bottom = 0.5
|
---|
| 151 | margin_left = -21.0
|
---|
| 152 | margin_top = -21.0
|
---|
| 153 | margin_right = 21.0
|
---|
| 154 | margin_bottom = 21.0
|
---|
| 155 | __meta__ = {
|
---|
| 156 | "_edit_use_anchors_": false
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | [node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
|
---|
| 160 | anchor_right = 0.5
|
---|
| 161 | anchor_bottom = 0.5
|
---|
[aa1db83] | 162 | margin_left = -1.12244
|
---|
| 163 | margin_top = -1.12244
|
---|
| 164 | margin_right = 38.8776
|
---|
| 165 | margin_bottom = 38.8776
|
---|
[f7b09c8] | 166 | texture = ExtResource( 2 )
|
---|
[70fb6d4] | 167 | __meta__ = {
|
---|
| 168 | "_edit_use_anchors_": false
|
---|
| 169 | }
|
---|
[f7b09c8] | 170 |
|
---|
| 171 | [node name="Control" type="Control" parent="HUD"]
|
---|
| 172 | anchor_top = 1.0
|
---|
| 173 | anchor_right = 0.5
|
---|
| 174 | anchor_bottom = 1.0
|
---|
[70fb6d4] | 175 | margin_left = -0.445442
|
---|
[f7b09c8] | 176 | margin_top = 542.0
|
---|
[70fb6d4] | 177 | margin_right = -514.445
|
---|
| 178 | margin_bottom = 542.0
|
---|
| 179 | __meta__ = {
|
---|
| 180 | "_edit_use_anchors_": false
|
---|
| 181 | }
|
---|
[f7b09c8] | 182 |
|
---|
[70fb6d4] | 183 | [node name="Man" type="TextureRect" parent="HUD/Control"]
|
---|
| 184 | light_mask = 2
|
---|
[f7b09c8] | 185 | anchor_right = 0.5
|
---|
| 186 | anchor_bottom = 0.5
|
---|
[3c8ca52] | 187 | margin_left = 7.61129
|
---|
| 188 | margin_top = -771.506
|
---|
| 189 | margin_right = 109.611
|
---|
| 190 | margin_bottom = -584.506
|
---|
[f7b09c8] | 191 | texture = ExtResource( 3 )
|
---|
| 192 | __meta__ = {
|
---|
| 193 | "_edit_use_anchors_": false
|
---|
| 194 | }
|
---|
[70fb6d4] | 195 |
|
---|
| 196 | [node name="FallDamage" type="TextureRect" parent="HUD/Control"]
|
---|
| 197 | modulate = Color( 1, 1, 1, 0 )
|
---|
| 198 | anchor_right = 0.5
|
---|
| 199 | anchor_bottom = 0.5
|
---|
[3c8ca52] | 200 | margin_left = 24.8588
|
---|
| 201 | margin_top = -609.435
|
---|
| 202 | margin_right = 92.8588
|
---|
| 203 | margin_bottom = -583.435
|
---|
[70fb6d4] | 204 | texture = ExtResource( 4 )
|
---|
| 205 | __meta__ = {
|
---|
| 206 | "_edit_use_anchors_": false
|
---|
| 207 | }
|
---|
| 208 |
|
---|
| 209 | [node name="HealthBar" type="ProgressBar" parent="HUD/Control"]
|
---|
[aa1db83] | 210 | anchor_left = 2.0
|
---|
| 211 | anchor_right = 2.0
|
---|
| 212 | anchor_bottom = 1.0
|
---|
| 213 | margin_left = 744.7
|
---|
[3c8ca52] | 214 | margin_top = -614.977
|
---|
[aa1db83] | 215 | margin_right = 1007.7
|
---|
[3c8ca52] | 216 | margin_bottom = -585.977
|
---|
| 217 | theme = ExtResource( 10 )
|
---|
[70fb6d4] | 218 | max_value = 101.6
|
---|
| 219 | value = 100.0
|
---|
| 220 | rounded = true
|
---|
| 221 | percent_visible = false
|
---|
| 222 | __meta__ = {
|
---|
| 223 | "_edit_use_anchors_": false
|
---|
| 224 | }
|
---|
| 225 |
|
---|
| 226 | [node name="StaminaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
[aa1db83] | 227 | anchor_left = 2.0
|
---|
| 228 | anchor_right = 2.0
|
---|
| 229 | anchor_bottom = 1.0
|
---|
| 230 | margin_left = 744.653
|
---|
[3c8ca52] | 231 | margin_top = -649.119
|
---|
[aa1db83] | 232 | margin_right = 1007.65
|
---|
[3c8ca52] | 233 | margin_bottom = -620.119
|
---|
[aa1db83] | 234 | size_flags_horizontal = 0
|
---|
[3c8ca52] | 235 | theme = ExtResource( 6 )
|
---|
[70fb6d4] | 236 | max_value = 101.6
|
---|
| 237 | value = 100.0
|
---|
| 238 | rounded = true
|
---|
| 239 | percent_visible = false
|
---|
| 240 | __meta__ = {
|
---|
| 241 | "_edit_use_anchors_": false
|
---|
| 242 | }
|
---|
[aa1db83] | 243 |
|
---|
| 244 | [node name="ManaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
| 245 | anchor_left = 2.0
|
---|
| 246 | anchor_right = 2.0
|
---|
| 247 | anchor_bottom = 1.0
|
---|
| 248 | margin_left = 744.653
|
---|
[3c8ca52] | 249 | margin_top = -682.6
|
---|
[aa1db83] | 250 | margin_right = 1007.65
|
---|
[3c8ca52] | 251 | margin_bottom = -653.6
|
---|
[aa1db83] | 252 | size_flags_horizontal = 0
|
---|
| 253 | theme = ExtResource( 8 )
|
---|
| 254 | max_value = 101.6
|
---|
| 255 | value = 100.0
|
---|
| 256 | rounded = true
|
---|
| 257 | percent_visible = false
|
---|
| 258 | __meta__ = {
|
---|
| 259 | "_edit_use_anchors_": false
|
---|
| 260 | }
|
---|
[3c8ca52] | 261 |
|
---|
| 262 | [node name="LifeforceBar" type="ProgressBar" parent="HUD/Control"]
|
---|
| 263 | anchor_left = 2.0
|
---|
| 264 | anchor_right = 2.0
|
---|
| 265 | anchor_bottom = 1.0
|
---|
| 266 | margin_left = 744.934
|
---|
| 267 | margin_top = -580.881
|
---|
| 268 | margin_right = 1007.93
|
---|
| 269 | margin_bottom = -551.881
|
---|
| 270 | size_flags_horizontal = 0
|
---|
| 271 | theme = ExtResource( 7 )
|
---|
| 272 | max_value = 101.6
|
---|
| 273 | value = 100.0
|
---|
| 274 | rounded = true
|
---|
| 275 | percent_visible = false
|
---|
| 276 | __meta__ = {
|
---|
| 277 | "_edit_use_anchors_": false
|
---|
| 278 | }
|
---|
| 279 |
|
---|
| 280 | [node name="XPBar" type="ProgressBar" parent="HUD/Control"]
|
---|
| 281 | anchor_bottom = 0.5
|
---|
| 282 | margin_left = 7.99913
|
---|
| 283 | margin_top = -580.782
|
---|
| 284 | margin_right = 109.999
|
---|
| 285 | margin_bottom = -551.782
|
---|
| 286 | size_flags_horizontal = 0
|
---|
| 287 | theme = ExtResource( 9 )
|
---|
| 288 | max_value = 105.0
|
---|
| 289 | rounded = true
|
---|
| 290 | percent_visible = false
|
---|
| 291 | __meta__ = {
|
---|
| 292 | "_edit_use_anchors_": false
|
---|
| 293 | }
|
---|