crash.tscn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [gd_scene load_steps=8 format=3 uid="uid://c4hecxruavnfm"]
  2. [ext_resource type="Script" path="res://effect/crash/crash.gd" id="1_8bcl0"]
  3. [ext_resource type="Script" path="res://effect/crash/noise.gd" id="1_xh8ax"]
  4. [ext_resource type="Script" path="res://effect/crash/splash_gfx.gd" id="3_mi21g"]
  5. [sub_resource type="Curve" id="Curve_2ymgo"]
  6. _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
  7. point_count = 2
  8. [sub_resource type="CurveTexture" id="CurveTexture_si023"]
  9. curve = SubResource("Curve_2ymgo")
  10. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fpdqd"]
  11. spread = 180.0
  12. initial_velocity_max = 10.0
  13. angle_max = 360.0
  14. scale_curve = SubResource("CurveTexture_si023")
  15. color = Color(1, 1, 0.372549, 1)
  16. [sub_resource type="SphereMesh" id="SphereMesh_f2rrx"]
  17. radial_segments = 4
  18. rings = 1
  19. [node name="Crash" type="Node3D"]
  20. script = ExtResource("1_8bcl0")
  21. [node name="Noise" type="AudioStreamPlayer3D" parent="."]
  22. script = ExtResource("1_xh8ax")
  23. [node name="Splash" type="GPUParticles3D" parent="."]
  24. emitting = false
  25. one_shot = true
  26. explosiveness = 1.0
  27. process_material = SubResource("ParticleProcessMaterial_fpdqd")
  28. draw_pass_1 = SubResource("SphereMesh_f2rrx")
  29. script = ExtResource("3_mi21g")
  30. [connection signal="finished" from="Noise" to="." method="_on_noise_finished"]
  31. [connection signal="finished" from="Splash" to="." method="_on_splash_finished"]