source: Studio/Player.tscn@ 315bf24

sandbox
Last change on this file since 315bf24 was 70fb6d4, checked in by Kevin Chapman <victory2b@…>, 4 years ago

Stamina bar in process

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