[gd_scene format=3 uid="uid://cw72s41o5vn4e"]

[ext_resource type="Script" uid="uid://b16i4x4kwpgs6" path="res://sources/look_and_learn/letter_segment.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://baqbd52qcuxh1" path="res://sources/look_and_learn/tracing_path.tscn" id="2_hdjbu"]
[ext_resource type="Texture2D" uid="uid://cyx6rau3sgwed" path="res://assets/look_and_learn/fx_03.png" id="4"]
[ext_resource type="AudioStream" uid="uid://bqlrlnas4fkfa" path="res://assets/look_and_learn/win.wav" id="5"]
[ext_resource type="PackedScene" uid="uid://v0lyity2xtdk" path="res://sources/look_and_learn/tracing_effects.tscn" id="5_nsgma"]

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

[sub_resource type="GradientTexture1D" id="GradientTexture1D_5inok"]
gradient = SubResource("Gradient_tmnc4")
width = 32

[sub_resource type="Curve" id="Curve_lgbaw"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2

[sub_resource type="CurveTexture" id="CurveTexture_he5ko"]
width = 32
curve = SubResource("Curve_lgbaw")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_dpfdt"]
particle_flag_disable_z = true
spread = 180.0
initial_velocity_min = 500.0
initial_velocity_max = 500.0
gravity = Vector3(0, 98, 0)
scale_curve = SubResource("CurveTexture_he5ko")
color_ramp = SubResource("GradientTexture1D_5inok")

[node name="LetterSegment" type="Node2D" unique_id=1368810197]
z_index = 100
script = ExtResource("1")

[node name="TracingPath" parent="." unique_id=1954691601 instance=ExtResource("2_hdjbu")]

[node name="CompleteParticles" type="GPUParticles2D" parent="." unique_id=1819117536]
emitting = false
amount = 32
texture = ExtResource("4")
lifetime = 2.0
one_shot = true
explosiveness = 0.8
process_material = SubResource("ParticleProcessMaterial_dpfdt")

[node name="CompleteAudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=163231365]
stream = ExtResource("5")

[node name="TracingEffects" parent="." unique_id=1302144978 instance=ExtResource("5_nsgma")]

[connection signal="demo_finished" from="TracingPath" to="." method="_on_tracing_path_demo_finished"]
[connection signal="finished" from="TracingPath" to="." method="_on_tracing_path_finished"]
[connection signal="finished" from="CompleteAudioStreamPlayer" to="." method="_on_complete_audio_stream_player_finished"]
