1
0

sun_burst.tscn 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [gd_scene format=3]
  2. [ext_resource type="Script" path="res://scripts/sun_burst.gd" id="1_sun_burst"]
  3. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_additive"]
  4. blend_mode = 1
  5. [sub_resource type="Gradient" id="Gradient_glow"]
  6. colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
  7. [sub_resource type="GradientTexture2D" id="GradientTexture2D_glow"]
  8. gradient = SubResource("Gradient_glow")
  9. width = 128
  10. height = 128
  11. fill = 1
  12. fill_from = Vector2(0.5, 0.5)
  13. fill_to = Vector2(0.5, 0)
  14. [sub_resource type="Gradient" id="Gradient_fade"]
  15. colors = PackedColorArray(0.76, 0.25, 0.12, 1, 0, 0, 0, 1)
  16. [node name="SunBurst" type="CPUParticles2D"]
  17. material = SubResource("CanvasItemMaterial_additive")
  18. amount = 525
  19. lifetime = 1.5
  20. lifetime_randomness = 0.67
  21. texture = SubResource("GradientTexture2D_glow")
  22. spread = 180.0
  23. gravity = Vector2(0, 0)
  24. initial_velocity_min = 15.0
  25. initial_velocity_max = 25.0
  26. scale_amount_min = 0.156
  27. scale_amount_max = 0.3125
  28. color_ramp = SubResource("Gradient_fade")
  29. script = ExtResource("1_sun_burst")