|
1 |
| -[gd_scene load_steps=77 format=3 uid="uid://bsfyypyhwfbs5"] |
| 1 | +[gd_scene load_steps=80 format=3 uid="uid://bsfyypyhwfbs5"] |
2 | 2 |
|
3 | 3 | [ext_resource type="PackedScene" uid="uid://du0c1yciw8ul6" path="res://objects/actors/Actor.tscn" id="1_wrkhm"]
|
4 | 4 | [ext_resource type="Script" path="res://objects/actors/player/Player.gd" id="2_bhjnv"]
|
| 5 | +[ext_resource type="Resource" uid="uid://r3i80a6v2w0y" path="res://resources/weapons/gun/Gun.tres" id="3_irbyu"] |
5 | 6 | [ext_resource type="Texture2D" uid="uid://dw5vuo3agm77m" path="res://objects/actors/player/template.png" id="3_q5uec"]
|
6 |
| -[ext_resource type="Resource" uid="uid://ca4y5d7kksi0h" path="res://resources/weapons/sword/Sword.tres" id="3_uqweb"] |
7 | 7 | [ext_resource type="PackedScene" uid="uid://cxlkjx4h6gv5h" path="res://components/collector/Collector.tscn" id="5_q1uwo"]
|
| 8 | +[ext_resource type="PackedScene" uid="uid://c5w6dv2r65qsd" path="res://objects/hud/HealthBar.tscn" id="7_svy1a"] |
8 | 9 |
|
9 | 10 | [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_p4sxr"]
|
10 | 11 | properties/0/path = NodePath(".:position")
|
@@ -508,19 +509,33 @@ radius = 32.0
|
508 | 509 | [sub_resource type="CircleShape2D" id="CircleShape2D_xu8dn"]
|
509 | 510 | radius = 80.0
|
510 | 511 |
|
511 |
| -[sub_resource type="Animation" id="Animation_tc2ku"] |
512 |
| -length = 0.001 |
| 512 | +[sub_resource type="Animation" id="Animation_0v3ge"] |
| 513 | +resource_name = "Death" |
513 | 514 | tracks/0/type = "value"
|
514 | 515 | tracks/0/imported = false
|
515 | 516 | tracks/0/enabled = true
|
516 | 517 | tracks/0/path = NodePath(".:modulate")
|
517 | 518 | tracks/0/interp = 1
|
518 | 519 | tracks/0/loop_wrap = true
|
519 | 520 | tracks/0/keys = {
|
520 |
| -"times": PackedFloat32Array(0), |
521 |
| -"transitions": PackedFloat32Array(1), |
| 521 | +"times": PackedFloat32Array(0, 0.75), |
| 522 | +"transitions": PackedFloat32Array(1, 1), |
522 | 523 | "update": 0,
|
523 |
| -"values": [Color(1, 1, 1, 1)] |
| 524 | +"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] |
| 525 | +} |
| 526 | +tracks/1/type = "method" |
| 527 | +tracks/1/imported = false |
| 528 | +tracks/1/enabled = true |
| 529 | +tracks/1/path = NodePath(".") |
| 530 | +tracks/1/interp = 1 |
| 531 | +tracks/1/loop_wrap = true |
| 532 | +tracks/1/keys = { |
| 533 | +"times": PackedFloat32Array(0.75), |
| 534 | +"transitions": PackedFloat32Array(1), |
| 535 | +"values": [{ |
| 536 | +"args": [], |
| 537 | +"method": &"queue_free" |
| 538 | +}] |
524 | 539 | }
|
525 | 540 |
|
526 | 541 | [sub_resource type="Animation" id="Animation_l1t87"]
|
@@ -552,17 +567,62 @@ tracks/1/keys = {
|
552 | 567 | }]
|
553 | 568 | }
|
554 | 569 |
|
| 570 | +[sub_resource type="Animation" id="Animation_fx0oj"] |
| 571 | +resource_name = "Hit" |
| 572 | +length = 0.4 |
| 573 | +tracks/0/type = "value" |
| 574 | +tracks/0/imported = false |
| 575 | +tracks/0/enabled = true |
| 576 | +tracks/0/path = NodePath("AnimatedSprite:modulate") |
| 577 | +tracks/0/interp = 1 |
| 578 | +tracks/0/loop_wrap = true |
| 579 | +tracks/0/keys = { |
| 580 | +"times": PackedFloat32Array(0, 0.2, 0.4), |
| 581 | +"transitions": PackedFloat32Array(1, 1, 1), |
| 582 | +"update": 0, |
| 583 | +"values": [Color(1, 1, 1, 1), Color(0.912963, 0.144798, 0.20362, 1), Color(1, 1, 1, 1)] |
| 584 | +} |
| 585 | + |
| 586 | +[sub_resource type="Animation" id="Animation_tc2ku"] |
| 587 | +length = 0.001 |
| 588 | +tracks/0/type = "value" |
| 589 | +tracks/0/imported = false |
| 590 | +tracks/0/enabled = true |
| 591 | +tracks/0/path = NodePath(".:modulate") |
| 592 | +tracks/0/interp = 1 |
| 593 | +tracks/0/loop_wrap = true |
| 594 | +tracks/0/keys = { |
| 595 | +"times": PackedFloat32Array(0), |
| 596 | +"transitions": PackedFloat32Array(1), |
| 597 | +"update": 0, |
| 598 | +"values": [Color(1, 1, 1, 1)] |
| 599 | +} |
| 600 | +tracks/1/type = "bezier" |
| 601 | +tracks/1/imported = false |
| 602 | +tracks/1/enabled = true |
| 603 | +tracks/1/path = NodePath(".:material:shader_parameter/flash_value") |
| 604 | +tracks/1/interp = 1 |
| 605 | +tracks/1/loop_wrap = true |
| 606 | +tracks/1/keys = { |
| 607 | +"handle_modes": PackedInt32Array(0), |
| 608 | +"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), |
| 609 | +"times": PackedFloat32Array(0) |
| 610 | +} |
| 611 | + |
555 | 612 | [sub_resource type="AnimationLibrary" id="AnimationLibrary_mt86f"]
|
556 | 613 | _data = {
|
557 |
| -"RESET": SubResource("Animation_tc2ku"), |
558 |
| -"fade_away": SubResource("Animation_l1t87") |
| 614 | +"Death": SubResource("Animation_0v3ge"), |
| 615 | +"FadeAway": SubResource("Animation_l1t87"), |
| 616 | +"Hit": SubResource("Animation_fx0oj"), |
| 617 | +"RESET": SubResource("Animation_tc2ku") |
559 | 618 | }
|
560 | 619 |
|
561 | 620 | [node name="Player" instance=ExtResource("1_wrkhm")]
|
562 | 621 | collision_mask = 7
|
563 | 622 | script = ExtResource("2_bhjnv")
|
564 | 623 | chestModifierSpeed = 0.7
|
565 |
| -weapon = ExtResource("3_uqweb") |
| 624 | +life = 100 |
| 625 | +weapon = ExtResource("3_irbyu") |
566 | 626 |
|
567 | 627 | [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="0"]
|
568 | 628 | replication_config = SubResource("SceneReplicationConfig_p4sxr")
|
@@ -590,4 +650,10 @@ libraries = {
|
590 | 650 | "": SubResource("AnimationLibrary_mt86f")
|
591 | 651 | }
|
592 | 652 |
|
| 653 | +[node name="HealthBar" parent="." index="6" instance=ExtResource("7_svy1a")] |
| 654 | +offset_left = -27.0 |
| 655 | +offset_top = -34.0 |
| 656 | +offset_right = 84.0 |
| 657 | +offset_bottom = -23.0 |
| 658 | + |
593 | 659 | [connection signal="on_collecting" from="Collector" to="." method="_on_collecting"]
|
0 commit comments