WindGenerator.tscn 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. [gd_scene load_steps=16 format=3 uid="uid://c108uri4ql2wh"]
  2. [ext_resource type="PackedScene" uid="uid://bn1kect7h2dlp" path="res://Scenes/Prefabs/LevelObjects/BulletBillGenerator.tscn" id="1_mpgoo"]
  3. [ext_resource type="Script" uid="uid://cxkh8cic78uog" path="res://Scripts/Parts/WindGenerator.gd" id="2_06nk3"]
  4. [ext_resource type="Texture2D" uid="uid://dimtvmmic8y1u" path="res://Assets/Sprites/Editor/WindGenerator.png" id="3_mtw7j"]
  5. [ext_resource type="Texture2D" uid="uid://dy3p03djelkb3" path="res://Assets/Sprites/Particles/Leaves.png" id="4_3cn4y"]
  6. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="5_3cn4y"]
  7. [ext_resource type="AudioStream" uid="uid://g5cjhcnpp1fp" path="res://Assets/Audio/SFX/Wind.wav" id="5_u3e45"]
  8. [ext_resource type="JSON" path="res://Assets/Sprites/Particles/WindParticles.json" id="6_u3e45"]
  9. [ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="6_wacow"]
  10. [ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="7_swgot"]
  11. [ext_resource type="Script" uid="uid://ctfbuoxtnnl0q" path="res://Scripts/Classes/Components/EditorPropertyExposer.gd" id="8_mtw7j"]
  12. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_i3xr0"]
  13. particles_animation = true
  14. particles_anim_h_frames = 2
  15. particles_anim_v_frames = 1
  16. particles_anim_loop = false
  17. [sub_resource type="Curve" id="Curve_xqrrq"]
  18. _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.894444, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
  19. point_count = 3
  20. [sub_resource type="CurveTexture" id="CurveTexture_68lil"]
  21. curve = SubResource("Curve_xqrrq")
  22. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_am6ww"]
  23. particle_flag_disable_z = true
  24. emission_shape_scale = Vector3(1, 15, 1)
  25. emission_shape = 3
  26. emission_box_extents = Vector3(1, 8, 1)
  27. spread = 0.0
  28. initial_velocity_min = 100.0
  29. initial_velocity_max = 500.0
  30. angular_velocity_min = -720.0
  31. angular_velocity_max = 720.0
  32. gravity = Vector3(0, 0, 0)
  33. alpha_curve = SubResource("CurveTexture_68lil")
  34. anim_offset_max = 1.0
  35. [sub_resource type="Resource" id="Resource_tvrnh"]
  36. script = ExtResource("7_swgot")
  37. Overworld = ExtResource("5_u3e45")
  38. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  39. [node name="EntityGenerator" instance=ExtResource("1_mpgoo")]
  40. script = ExtResource("2_06nk3")
  41. wind_force = 4
  42. wind_direction = 0
  43. entity_scene = null
  44. [node name="Sprite" parent="LevelEditorVisibleNode" index="0"]
  45. texture = ExtResource("3_mtw7j")
  46. [node name="CanvasLayer" type="CanvasLayer" parent="." index="2"]
  47. layer = 0
  48. [node name="Left" type="Control" parent="CanvasLayer" index="0"]
  49. visible = false
  50. layout_mode = 3
  51. anchors_preset = 4
  52. anchor_top = 0.5
  53. anchor_bottom = 0.5
  54. grow_vertical = 2
  55. metadata/_edit_use_anchors_ = true
  56. [node name="Particles" type="GPUParticles2D" parent="CanvasLayer/Left" index="0"]
  57. unique_name_in_owner = true
  58. material = SubResource("CanvasItemMaterial_i3xr0")
  59. position = Vector2(-64, 0)
  60. amount = 64
  61. texture = ExtResource("4_3cn4y")
  62. lifetime = 2.0
  63. process_material = SubResource("ParticleProcessMaterial_am6ww")
  64. [node name="ResourceSetterNew" type="Node" parent="CanvasLayer/Left/Particles" index="0" node_paths=PackedStringArray("node_to_affect")]
  65. script = ExtResource("5_3cn4y")
  66. node_to_affect = NodePath("..")
  67. property_name = "texture"
  68. mode = 1
  69. resource_json = ExtResource("6_u3e45")
  70. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  71. [node name="Right" type="Control" parent="CanvasLayer" index="1"]
  72. visible = false
  73. layout_mode = 3
  74. anchors_preset = 6
  75. anchor_left = 1.0
  76. anchor_top = 0.5
  77. anchor_right = 1.0
  78. anchor_bottom = 0.5
  79. grow_horizontal = 0
  80. grow_vertical = 2
  81. metadata/_edit_use_anchors_ = true
  82. [node name="Particles" type="GPUParticles2D" parent="CanvasLayer/Right" index="0"]
  83. material = SubResource("CanvasItemMaterial_i3xr0")
  84. position = Vector2(64, 0)
  85. scale = Vector2(-1, 1)
  86. amount = 64
  87. texture = ExtResource("4_3cn4y")
  88. lifetime = 2.0
  89. process_material = SubResource("ParticleProcessMaterial_am6ww")
  90. [node name="ResourceSetterNew" type="Node" parent="CanvasLayer/Right/Particles" index="0" node_paths=PackedStringArray("node_to_affect")]
  91. script = ExtResource("5_3cn4y")
  92. node_to_affect = NodePath("..")
  93. property_name = "texture"
  94. mode = 1
  95. resource_json = ExtResource("6_u3e45")
  96. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  97. [node name="SFX" type="AudioStreamPlayer" parent="." index="3"]
  98. stream = ExtResource("5_u3e45")
  99. bus = &"SFX"
  100. [node name="ResourceSetter" type="Node" parent="SFX" index="0" node_paths=PackedStringArray("node_to_affect")]
  101. script = ExtResource("6_wacow")
  102. node_to_affect = NodePath("..")
  103. property_name = "stream"
  104. themed_resource = SubResource("Resource_tvrnh")
  105. metadata/_custom_type_script = "uid://cq6f682453q6o"
  106. [node name="EditorPropertyExposer" type="Node" parent="." index="4"]
  107. script = ExtResource("8_mtw7j")
  108. properties = Array[String](["wind_force", "wind_direction"])
  109. metadata/_custom_type_script = "uid://ctfbuoxtnnl0q"