1 | [gd_scene load_steps=12 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 | [ext_resource path="res://Stats/Mana/manabar.tres" type="Theme" id=8]
|
---|
11 |
|
---|
12 | [sub_resource type="CapsuleMesh" id=1]
|
---|
13 | radius = 0.5
|
---|
14 |
|
---|
15 | [sub_resource type="CapsuleShape" id=2]
|
---|
16 | radius = 0.5
|
---|
17 |
|
---|
18 | [sub_resource type="Animation" id=3]
|
---|
19 | resource_name = "FallDamage"
|
---|
20 | length = 0.6
|
---|
21 | tracks/0/type = "value"
|
---|
22 | tracks/0/path = NodePath("../HUD/Control/FallDamage:modulate")
|
---|
23 | tracks/0/interp = 1
|
---|
24 | tracks/0/loop_wrap = true
|
---|
25 | tracks/0/imported = false
|
---|
26 | tracks/0/enabled = true
|
---|
27 | tracks/0/keys = {
|
---|
28 | "times": PoolRealArray( 0, 0.2, 0.6 ),
|
---|
29 | "transitions": PoolRealArray( 1, 1, 1 ),
|
---|
30 | "update": 0,
|
---|
31 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
---|
32 | }
|
---|
33 |
|
---|
34 | [node name="Player" type="KinematicBody"]
|
---|
35 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
|
---|
36 | script = ExtResource( 1 )
|
---|
37 |
|
---|
38 | [node name="BodyMesh" type="MeshInstance" parent="."]
|
---|
39 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
40 | mesh = SubResource( 1 )
|
---|
41 | material/0 = null
|
---|
42 |
|
---|
43 | [node name="BodyCollison" type="CollisionShape" parent="."]
|
---|
44 | transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
|
---|
45 | shape = SubResource( 2 )
|
---|
46 |
|
---|
47 | [node name="Head" type="Spatial" parent="."]
|
---|
48 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
|
---|
49 |
|
---|
50 | [node name="Camera" type="Camera" parent="Head"]
|
---|
51 | script = ExtResource( 5 )
|
---|
52 |
|
---|
53 | [node name="AnimationPlayer" type="AnimationPlayer" parent="Head"]
|
---|
54 | anims/FallDamage = SubResource( 3 )
|
---|
55 |
|
---|
56 | [node name="HUD" type="Control" parent="."]
|
---|
57 | anchor_right = 1.0
|
---|
58 | anchor_bottom = 1.0
|
---|
59 | margin_left = -0.33374
|
---|
60 | margin_top = -0.314941
|
---|
61 | margin_right = 3.66626
|
---|
62 | margin_bottom = -0.314941
|
---|
63 | __meta__ = {
|
---|
64 | "_edit_use_anchors_": false
|
---|
65 | }
|
---|
66 |
|
---|
67 | [node name="Crosshair" type="Control" parent="HUD"]
|
---|
68 | anchor_left = 0.5
|
---|
69 | anchor_top = 0.5
|
---|
70 | anchor_right = 0.5
|
---|
71 | anchor_bottom = 0.5
|
---|
72 | margin_left = -21.0
|
---|
73 | margin_top = -21.0
|
---|
74 | margin_right = 21.0
|
---|
75 | margin_bottom = 21.0
|
---|
76 | __meta__ = {
|
---|
77 | "_edit_use_anchors_": false
|
---|
78 | }
|
---|
79 |
|
---|
80 | [node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
|
---|
81 | anchor_right = 0.5
|
---|
82 | anchor_bottom = 0.5
|
---|
83 | margin_left = -1.12244
|
---|
84 | margin_top = -1.12244
|
---|
85 | margin_right = 38.8776
|
---|
86 | margin_bottom = 38.8776
|
---|
87 | texture = ExtResource( 2 )
|
---|
88 | __meta__ = {
|
---|
89 | "_edit_use_anchors_": false
|
---|
90 | }
|
---|
91 |
|
---|
92 | [node name="Control" type="Control" parent="HUD"]
|
---|
93 | anchor_top = 1.0
|
---|
94 | anchor_right = 0.5
|
---|
95 | anchor_bottom = 1.0
|
---|
96 | margin_left = -0.445442
|
---|
97 | margin_top = 542.0
|
---|
98 | margin_right = -514.445
|
---|
99 | margin_bottom = 542.0
|
---|
100 | __meta__ = {
|
---|
101 | "_edit_use_anchors_": false
|
---|
102 | }
|
---|
103 |
|
---|
104 | [node name="Man" type="TextureRect" parent="HUD/Control"]
|
---|
105 | light_mask = 2
|
---|
106 | anchor_right = 0.5
|
---|
107 | anchor_bottom = 0.5
|
---|
108 | margin_left = 5.89191
|
---|
109 | margin_top = -733.919
|
---|
110 | margin_right = 107.892
|
---|
111 | margin_bottom = -546.919
|
---|
112 | texture = ExtResource( 3 )
|
---|
113 | __meta__ = {
|
---|
114 | "_edit_use_anchors_": false
|
---|
115 | }
|
---|
116 |
|
---|
117 | [node name="FallDamage" type="TextureRect" parent="HUD/Control"]
|
---|
118 | modulate = Color( 1, 1, 1, 0 )
|
---|
119 | anchor_right = 0.5
|
---|
120 | anchor_bottom = 0.5
|
---|
121 | margin_left = 22.8588
|
---|
122 | margin_top = -573.435
|
---|
123 | margin_right = 90.8588
|
---|
124 | margin_bottom = -547.435
|
---|
125 | texture = ExtResource( 4 )
|
---|
126 | __meta__ = {
|
---|
127 | "_edit_use_anchors_": false
|
---|
128 | }
|
---|
129 |
|
---|
130 | [node name="HealthBar" type="ProgressBar" parent="HUD/Control"]
|
---|
131 | anchor_left = 2.0
|
---|
132 | anchor_right = 2.0
|
---|
133 | anchor_bottom = 1.0
|
---|
134 | margin_left = 744.7
|
---|
135 | margin_top = -584.977
|
---|
136 | margin_right = 1007.7
|
---|
137 | margin_bottom = -555.977
|
---|
138 | theme = ExtResource( 6 )
|
---|
139 | max_value = 101.6
|
---|
140 | value = 100.0
|
---|
141 | rounded = true
|
---|
142 | percent_visible = false
|
---|
143 | __meta__ = {
|
---|
144 | "_edit_use_anchors_": false
|
---|
145 | }
|
---|
146 |
|
---|
147 | [node name="StaminaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
148 | anchor_left = 2.0
|
---|
149 | anchor_right = 2.0
|
---|
150 | anchor_bottom = 1.0
|
---|
151 | margin_left = 744.653
|
---|
152 | margin_top = -619.119
|
---|
153 | margin_right = 1007.65
|
---|
154 | margin_bottom = -590.119
|
---|
155 | size_flags_horizontal = 0
|
---|
156 | theme = ExtResource( 7 )
|
---|
157 | max_value = 101.6
|
---|
158 | value = 100.0
|
---|
159 | rounded = true
|
---|
160 | percent_visible = false
|
---|
161 | __meta__ = {
|
---|
162 | "_edit_use_anchors_": false
|
---|
163 | }
|
---|
164 |
|
---|
165 | [node name="ManaBar" type="ProgressBar" parent="HUD/Control"]
|
---|
166 | anchor_left = 2.0
|
---|
167 | anchor_right = 2.0
|
---|
168 | anchor_bottom = 1.0
|
---|
169 | margin_left = 744.653
|
---|
170 | margin_top = -652.6
|
---|
171 | margin_right = 1007.65
|
---|
172 | margin_bottom = -623.6
|
---|
173 | size_flags_horizontal = 0
|
---|
174 | theme = ExtResource( 8 )
|
---|
175 | max_value = 101.6
|
---|
176 | value = 100.0
|
---|
177 | rounded = true
|
---|
178 | percent_visible = false
|
---|
179 | __meta__ = {
|
---|
180 | "_edit_use_anchors_": false
|
---|
181 | }
|
---|