Reworked ending code to be more player node determined; added heart

animation; added reversable cloud scale toggle.
This commit is contained in:
Henry 2026-03-06 13:35:38 +00:00
parent 2db69a689b
commit 5bf3078953
10 changed files with 125 additions and 34 deletions

View file

@ -7,6 +7,7 @@
[ext_resource type="Texture2D" uid="uid://b0bdonvu25475" path="res://sprites/frame.png" id="4_qnbj4"]
[ext_resource type="Texture2D" uid="uid://dy743vehs0t1t" path="res://icon.svg" id="5_wqpjq"]
[ext_resource type="Texture2D" uid="uid://c4nhwvs13x5bc" path="res://sprites/heart.png" id="7_2cdgk"]
[ext_resource type="Script" uid="uid://b01h56iyb6pp2" path="res://scenes/heart.gd" id="7_qsl3t"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_neq0i"]
size = Vector2(129, 63)
@ -158,6 +159,44 @@ _data = {
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qsl3t"]
size = Vector2(31, 28)
[sub_resource type="Animation" id="Animation_2avx2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_5f346"]
resource_name = "beat"
length = 0.76666665
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:scale")
tracks/0/interp = 0
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 0.5),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.15, 1.15), Vector2(0.75, 0.75)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0onds"]
_data = {
&"RESET": SubResource("Animation_2avx2"),
&"beat": SubResource("Animation_5f346")
}
[node name="Boss" type="Area2D" unique_id=2108172712 groups=["boss"]]
z_index = -1
script = ExtResource("1_neq0i")
@ -217,8 +256,8 @@ wait_time = 0.05
one_shot = true
[node name="Heart" type="Area2D" parent="." unique_id=1098254590 groups=["heart"]]
visible = false
position = Vector2(0, -71)
script = ExtResource("7_qsl3t")
[node name="Sprite2D" type="Sprite2D" parent="Heart" unique_id=520903474]
texture = ExtResource("7_2cdgk")
@ -227,4 +266,8 @@ texture = ExtResource("7_2cdgk")
position = Vector2(0.5, 0)
shape = SubResource("RectangleShape2D_qsl3t")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Heart" unique_id=47669741]
libraries/ = SubResource("AnimationLibrary_0onds")
autoplay = &"beat"
[connection signal="timeout" from="Horse/ShootTimer" to="Horse" method="_on_shoot_timer_timeout"]