|
6 | 6 | [ext_resource type="Resource" uid="uid://r3i80a6v2w0y" path="res://resources/weapons/gun/Gun.tres" id="3_irbyu"]
|
7 | 7 | [ext_resource type="Texture2D" uid="uid://dw5vuo3agm77m" path="res://objects/actors/player/template.png" id="3_q5uec"]
|
8 | 8 | [ext_resource type="PackedScene" uid="uid://cxlkjx4h6gv5h" path="res://components/collector/Collector.tscn" id="5_q1uwo"]
|
9 |
| -[ext_resource type="Script" path="res://objects/actors/player/HealthBar.gd" id="7_ot68h"] |
| 9 | +[ext_resource type="PackedScene" uid="uid://c5w6dv2r65qsd" path="res://objects/hud/HealthBar.tscn" id="7_svy1a"] |
10 | 10 |
|
11 | 11 | [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_p4sxr"]
|
12 | 12 | properties/0/path = NodePath(".:position")
|
@@ -544,21 +544,6 @@ tracks/1/keys = {
|
544 | 544 | }]
|
545 | 545 | }
|
546 | 546 |
|
547 |
| -[sub_resource type="Animation" id="Animation_fx0oj"] |
548 |
| -resource_name = "Hit" |
549 |
| -length = 0.4 |
550 |
| -tracks/0/type = "bezier" |
551 |
| -tracks/0/imported = false |
552 |
| -tracks/0/enabled = true |
553 |
| -tracks/0/path = NodePath("AnimatedSprite:material:shader_parameter/flash_value") |
554 |
| -tracks/0/interp = 1 |
555 |
| -tracks/0/loop_wrap = true |
556 |
| -tracks/0/keys = { |
557 |
| -"handle_modes": PackedInt32Array(0, 0, 0), |
558 |
| -"points": PackedFloat32Array(0, -0.2, 0, 0.2, 0, 1, -0.2, 0, 0.2, 0, 0, -0.2, 0, 0.2, 0), |
559 |
| -"times": PackedFloat32Array(0, 0.2, 0.4) |
560 |
| -} |
561 |
| - |
562 | 547 | [sub_resource type="Animation" id="Animation_l1t87"]
|
563 | 548 | resource_name = "fade_away"
|
564 | 549 | tracks/0/type = "value"
|
@@ -588,6 +573,21 @@ tracks/1/keys = {
|
588 | 573 | }]
|
589 | 574 | }
|
590 | 575 |
|
| 576 | +[sub_resource type="Animation" id="Animation_fx0oj"] |
| 577 | +resource_name = "Hit" |
| 578 | +length = 0.4 |
| 579 | +tracks/0/type = "bezier" |
| 580 | +tracks/0/imported = false |
| 581 | +tracks/0/enabled = true |
| 582 | +tracks/0/path = NodePath("AnimatedSprite:material:shader_parameter/flash_value") |
| 583 | +tracks/0/interp = 1 |
| 584 | +tracks/0/loop_wrap = true |
| 585 | +tracks/0/keys = { |
| 586 | +"handle_modes": PackedInt32Array(0, 0, 0), |
| 587 | +"points": PackedFloat32Array(0, -0.2, 0, 0.2, 0, 1, -0.2, 0, 0.2, 0, 0, -0.2, 0, 0.2, 0), |
| 588 | +"times": PackedFloat32Array(0, 0.2, 0.4) |
| 589 | +} |
| 590 | + |
591 | 591 | [sub_resource type="Animation" id="Animation_tc2ku"]
|
592 | 592 | length = 0.001
|
593 | 593 | tracks/0/type = "value"
|
@@ -626,7 +626,7 @@ _data = {
|
626 | 626 | collision_mask = 7
|
627 | 627 | script = ExtResource("2_bhjnv")
|
628 | 628 | chestModifierSpeed = 0.7
|
629 |
| -maxHealth = 100 |
| 629 | +life = 100 |
630 | 630 | weapon = ExtResource("3_irbyu")
|
631 | 631 |
|
632 | 632 | [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="0"]
|
@@ -656,17 +656,6 @@ libraries = {
|
656 | 656 | "": SubResource("AnimationLibrary_mt86f")
|
657 | 657 | }
|
658 | 658 |
|
659 |
| -[node name="HealthBar" type="ProgressBar" parent="." index="6"] |
660 |
| -modulate = Color(0.227451, 0.768627, 0.156863, 1) |
661 |
| -z_index = 10 |
662 |
| -offset_left = -68.0 |
663 |
| -offset_top = -60.0 |
664 |
| -offset_right = 206.0 |
665 |
| -offset_bottom = -33.0 |
666 |
| -scale = Vector2(0.5, 0.5) |
667 |
| -mouse_filter = 2 |
668 |
| -step = 1.0 |
669 |
| -show_percentage = false |
670 |
| -script = ExtResource("7_ot68h") |
| 659 | +[node name="HealthBar" parent="." index="6" instance=ExtResource("7_svy1a")] |
671 | 660 |
|
672 | 661 | [connection signal="on_collecting" from="Collector" to="." method="_on_collecting"]
|
0 commit comments