candle.tscn 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. [gd_scene load_steps=14 format=2]
  2. [ext_resource path="res://decorations/sparkle.png" type="Texture2D" id=1]
  3. [ext_resource path="res://decorations/candle.png" type="Texture2D" id=2]
  4. [ext_resource path="res://decorations/fire.png" type="Texture2D" id=3]
  5. [ext_resource path="res://decorations/glow.png" type="Texture2D" id=4]
  6. [sub_resource type="CanvasItemMaterial" id=1]
  7. particles_animation = true
  8. particles_anim_h_frames = 11
  9. particles_anim_v_frames = 1
  10. particles_anim_loop = false
  11. [sub_resource type="Gradient" id=2]
  12. offsets = PackedFloat32Array( 0, 0.625698, 1 )
  13. colors = PackedColorArray( 1, 0.584314, 0, 1, 1, 0.84063, 0.226563, 1, 1, 0.584314, 0, 1 )
  14. [sub_resource type="CanvasItemMaterial" id=3]
  15. blend_mode = 1
  16. particles_animation = true
  17. particles_anim_h_frames = 8
  18. particles_anim_v_frames = 1
  19. particles_anim_loop = false
  20. [sub_resource type="Curve" id=4]
  21. max_value = 0.3
  22. _data = [ Vector2( 0, 0 ), 0.0, 1.36377, 0, 0, Vector2( 0.262376, 0.188182 ), 0.41974, 0.41974, 0, 0, Vector2( 1, 0.0295454 ), -1.06101, 0.0, 0, 0 ]
  23. [sub_resource type="Gradient" id=5]
  24. offsets = PackedFloat32Array( 0, 0.435754, 1 )
  25. colors = PackedColorArray( 1, 0.351563, 0, 1, 0.895996, 0.745333, 0.230999, 1, 1, 0.426842, 0.0234375, 1 )
  26. [sub_resource type="Gradient" id=12]
  27. offsets = PackedFloat32Array( 0, 0.100559, 0.234637, 0.480447, 0.603352, 1 )
  28. colors = PackedColorArray( 0.714844, 0.714844, 0.714844, 1, 0.382813, 0.382813, 0.382813, 1, 0.601563, 0.601563, 0.601563, 1, 0.229687, 0.229687, 0.229687, 1, 0.0197581, 0.0197581, 0.0197581, 1, 0, 0, 0, 1 )
  29. [sub_resource type="GradientTexture2D" id=9]
  30. gradient = SubResource( 12 )
  31. width = 128
  32. height = 128
  33. fill = 1
  34. fill_from = Vector2( 0.5, 0.5 )
  35. fill_to = Vector2( 0, 0 )
  36. [sub_resource type="Gradient" id=13]
  37. offsets = PackedFloat32Array( 0.0111732, 0.843575 )
  38. colors = PackedColorArray( 0.648926, 0.648926, 0.648926, 1, 0, 0, 0, 1 )
  39. [sub_resource type="GradientTexture2D" id=10]
  40. gradient = SubResource( 13 )
  41. width = 800
  42. height = 500
  43. fill = 1
  44. fill_from = Vector2( 0.5, 0.5 )
  45. [node name="Node2D" type="Node2D"]
  46. [node name="Sprite2D" type="Sprite2D" parent="."]
  47. light_mask = 128
  48. position = Vector2( 0, -11 )
  49. texture = ExtResource( 2 )
  50. [node name="glow" type="CPUParticles2D" parent="Sprite2D"]
  51. modulate = Color( 1, 0.360784, 0.113725, 1 )
  52. light_mask = 128
  53. position = Vector2( -13, -33.244 )
  54. scale = Vector2( 0.3, 0.5 )
  55. amount = 1
  56. lifetime = 0.8
  57. texture = ExtResource( 4 )
  58. gravity = Vector2( 0, 0 )
  59. [node name="Fire" type="CPUParticles2D" parent="Sprite2D"]
  60. light_mask = 128
  61. material = SubResource( 1 )
  62. position = Vector2( -13, -35 )
  63. scale = Vector2( 0.6, 0.6 )
  64. amount = 1
  65. lifetime = 0.8
  66. texture = ExtResource( 3 )
  67. gravity = Vector2( 0, 0 )
  68. color_ramp = SubResource( 2 )
  69. anim_speed = 1.0
  70. [node name="Sparkle" type="CPUParticles2D" parent="Sprite2D"]
  71. light_mask = 128
  72. material = SubResource( 3 )
  73. position = Vector2( -13, -35 )
  74. scale = Vector2( 0.6, 0.6 )
  75. amount = 3
  76. texture = ExtResource( 1 )
  77. emission_shape = 1
  78. emission_sphere_radius = 8.0
  79. gravity = Vector2( 0, -80 )
  80. angular_velocity = 1.0
  81. tangential_accel = 49.54
  82. scale_amount_curve = SubResource( 4 )
  83. color_ramp = SubResource( 5 )
  84. anim_speed = 1.0
  85. [node name="flow front" type="CPUParticles2D" parent="Sprite2D"]
  86. modulate = Color( 0.94902, 1, 0, 1 )
  87. light_mask = 128
  88. position = Vector2( -13, -28.689 )
  89. scale = Vector2( 0.25, 0.25 )
  90. amount = 1
  91. lifetime = 0.8
  92. texture = ExtResource( 4 )
  93. gravity = Vector2( 0, 0 )
  94. [node name="Light2D2" type="PointLight2D" parent="."]
  95. light_mask = 2
  96. position = Vector2( -15, -49 )
  97. texture = SubResource( 9 )
  98. color = Color( 1, 0.466667, 0.0352941, 1 )
  99. energy = 2.0
  100. range_height = 450.9
  101. range_item_cull_mask = 145
  102. shadow_buffer_size = 512
  103. shadow_gradient_length = 30.0
  104. shadow_item_cull_mask = 145
  105. [node name="PointLight2D" type="PointLight2D" parent="."]
  106. light_mask = 2
  107. texture = SubResource( 10 )
  108. color = Color( 0.709804, 0.388235, 0.313726, 1 )
  109. range_height = 901.9
  110. range_item_cull_mask = 17
  111. shadow_enabled = true
  112. shadow_gradient_length = 20.0
  113. shadow_item_cull_mask = 17