[gd_scene format=3 uid="uid://0n57icfpulmc"]

[ext_resource type="Texture2D" uid="uid://beefpuq6vu475" path="res://assets/vfx/heart.png" id="1_hugpe"]
[ext_resource type="Script" uid="uid://cemrdyqfubw7h" path="res://scripts/mask_projectile.gd" id="1_q6mno"]
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="3_hugpe"]

[sub_resource type="CanvasTexture" id="CanvasTexture_7sc4i"]
diffuse_texture = ExtResource("1_hugpe")

[sub_resource type="Gradient" id="Gradient_hugpe"]
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)

[sub_resource type="Curve" id="Curve_215e1"]
_limits = [-1.0, 1.0, 0.0, 1.0]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2

[sub_resource type="Curve" id="Curve_hugpe"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.8181818, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_q6mno"]
curve = SubResource("Curve_hugpe")

[sub_resource type="CurveTexture" id="CurveTexture_hugpe"]
curve = SubResource("Curve_215e1")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_q6mno"]
particle_flag_disable_z = true
emission_shape = 1
emission_sphere_radius = 15.51
spread = 180.0
initial_velocity_min = 23.65
initial_velocity_max = 116.43
gravity = Vector3(0, -100, 0)
scale_min = 0.5
color = Color(1, 0.5686275, 0.61960787, 1)
alpha_curve = SubResource("CurveTexture_q6mno")
hue_variation_min = -0.07
hue_variation_max = 0.01
hue_variation_curve = SubResource("CurveTexture_hugpe")

[sub_resource type="CircleShape2D" id="CircleShape2D_q6mno"]
radius = 7.0

[node name="Hearts" type="Node2D" unique_id=99305116]
script = ExtResource("1_q6mno")

[node name="Hearts" type="CPUParticles2D" parent="." unique_id=664421978]
z_index = 1
amount = 32
texture = SubResource("CanvasTexture_7sc4i")
lifetime = 0.34
emission_shape = 1
emission_sphere_radius = 15.51
gravity = Vector2(0, -100)
scale_amount_min = 0.5
color = Color(1, 0.27999997, 0.36400008, 1)
color_ramp = SubResource("Gradient_hugpe")
hue_variation_min = -0.07
hue_variation_max = 0.01
hue_variation_curve = SubResource("Curve_215e1")

[node name="Explosion" type="GPUParticles2D" parent="Hearts" unique_id=832599826]
z_index = 1
emitting = false
amount = 128
texture = SubResource("CanvasTexture_7sc4i")
lifetime = 0.6
one_shot = true
explosiveness = 1.0
fixed_fps = 0
draw_order = 0
process_material = SubResource("ParticleProcessMaterial_q6mno")

[node name="Hitbox" type="Area2D" parent="." unique_id=2075108255]
script = ExtResource("3_hugpe")
metadata/_custom_type_script = "uid://ejd25ul4j5pp"

[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" unique_id=976519706]
shape = SubResource("CircleShape2D_q6mno")

[connection signal="hit_entity" from="Hitbox" to="." method="_on_hitbox_hit_entity"]
[connection signal="hit_obstacle" from="Hitbox" to="." method="_on_hitbox_hit_obstacle"]
