mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-04 16:01:16 +00:00
Explosions
This commit is contained in:
parent
4bc76cc475
commit
e1d6afa512
21 changed files with 323 additions and 24 deletions
34
Scenes/Smoke.tscn
Normal file
34
Scenes/Smoke.tscn
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://cdvk0ifhabrms"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d0gbsrene2hqu" path="res://Sprites/Smoke.png" id="1_mprmi"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_puegb"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_pv7nn"]
|
||||
gradient = SubResource("Gradient_puegb")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_00di7"]
|
||||
_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_ga0hc"]
|
||||
curve = SubResource("Curve_00di7")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_kuwpg"]
|
||||
particle_flag_disable_z = true
|
||||
spread = 180.0
|
||||
initial_velocity_min = 25.0
|
||||
initial_velocity_max = 75.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 28.0
|
||||
damping_max = 28.0
|
||||
scale_curve = SubResource("CurveTexture_ga0hc")
|
||||
color_ramp = SubResource("GradientTexture1D_pv7nn")
|
||||
turbulence_enabled = true
|
||||
|
||||
[node name="Smoke" type="GPUParticles2D"]
|
||||
amount = 30
|
||||
process_material = SubResource("ParticleProcessMaterial_kuwpg")
|
||||
texture = ExtResource("1_mprmi")
|
||||
explosiveness = 1.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue