fuzzyworld

godot-shooter / commit

Add smoke.

e79aaa8fe7cd44777199c09162f3af89e4984150 · Pavel Safronov · 2023-11-02 11:38:39 -0700 · parents 6e5e56fe66d8

Add smoke.
 Smoke.tscn | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/Smoke.tscn b/Smoke.tscn
new file mode 100644
index 0000000..ec62816
--- /dev/null
+++ b/Smoke.tscn
@@ -0,0 +1,27 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://assets/kenney_simple-space/PNG/Default/meteor_squareSmall.png" type="Texture" id=1]
+
+[sub_resource type="Curve" id=1]
+_data = [ Vector2( 0, 0.0945946 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
+
+[sub_resource type="Gradient" id=2]
+colors = PoolColorArray( 0, 0, 0, 1, 1, 1, 1, 0 )
+
+[node name="Smoke" type="Node2D"]
+
+[node name="Particles2D" type="CPUParticles2D" parent="."]
+amount = 40
+explosiveness = 0.2
+lifetime_randomness = 0.5
+texture = ExtResource( 1 )
+direction = Vector2( -10, 0 )
+spread = 180.0
+gravity = Vector2( 0, -98 )
+initial_velocity = 20.0
+tangential_accel = 100.0
+damping = 5.91
+damping_random = 0.25
+scale_amount_curve = SubResource( 1 )
+color = Color( 0.427451, 0.427451, 0.427451, 0.258824 )
+color_ramp = SubResource( 2 )