[gd_scene load_steps=8 format=3 uid="uid://dyn71e3ttv2le"]

[ext_resource type="Script" uid="uid://dpom306speb2y" path="res://sources/minigames/caterpillar/spit_fx.gd" id="1_pyr48"]
[ext_resource type="Texture2D" uid="uid://bk1nmu2pkdenx" path="res://assets/vfx/tear.png" id="2_0nykj"]

[sub_resource type="Gradient" id="Gradient_57gkf"]
offsets = PackedFloat32Array(0, 0.404389, 1)
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_b6rlx"]
gradient = SubResource("Gradient_57gkf")
width = 32

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

[sub_resource type="CurveTexture" id="CurveTexture_mx7tb"]
width = 32
curve = SubResource("Curve_6hopf")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2vb7t"]
particle_flag_align_y = true
particle_flag_disable_z = true
velocity_pivot = Vector3(1, 0, 0)
spread = 33.0
initial_velocity_min = 100.0
initial_velocity_max = 150.0
gravity = Vector3(0, 98, 0)
scale_min = 0.5
scale_curve = SubResource("CurveTexture_mx7tb")
color_ramp = SubResource("GradientTexture1D_b6rlx")

[node name="SpitFX" type="Control"]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_pyr48")

[node name="Particles" type="GPUParticles2D" parent="."]
emitting = false
process_material = SubResource("ParticleProcessMaterial_2vb7t")
texture = ExtResource("2_0nykj")
lifetime = 1.5
one_shot = true
explosiveness = 1.0
randomness = 0.5
