godot-shooter / starfield-background / files / Explosion.tscn
Branch starfield-background · default branch · all branches
Explosion.tscn
c6faad15 2023-10-31 Pavel Safronov | 1 | [gd_scene load_steps=8 format=2] |
| 2 | ||
| 3 | [ext_resource path="res://kenney_simple-space/PNG/Default/star_small.png" type="Texture" id=1] | |
| 4 | [ext_resource path="res://Explosion.gd" type="Script" id=2] | |
| 5 | ||
| 6 | [sub_resource type="Gradient" id=4] | |
| 7 | offsets = PoolRealArray( 0, 0.941935, 1 ) | |
| 8 | colors = PoolColorArray( 1, 1, 1, 1, 1, 0.0580645, 0.0580645, 1, 1, 0, 0, 1 ) | |
| 9 | ||
| 10 | [sub_resource type="GradientTexture" id=5] | |
| 11 | gradient = SubResource( 4 ) | |
| 12 | ||
| 13 | [sub_resource type="Curve" id=1] | |
| 14 | _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ] | |
| 15 | ||
| 16 | [sub_resource type="CurveTexture" id=2] | |
| 17 | curve = SubResource( 1 ) | |
| 18 | ||
| 19 | [sub_resource type="ParticlesMaterial" id=3] | |
| 20 | emission_shape = 1 | |
| 21 | emission_sphere_radius = 0.01 | |
| 22 | flag_disable_z = true | |
| 23 | spread = 180.0 | |
| 24 | gravity = Vector3( 0, 0, 0 ) | |
| 25 | initial_velocity = 470.3 | |
| 26 | initial_velocity_random = 0.52 | |
| 27 | orbit_velocity = 0.0 | |
| 28 | orbit_velocity_random = 0.0 | |
| 29 | damping = 1000.0 | |
| 30 | angle = 306.5 | |
| 31 | angle_random = 0.4 | |
| 32 | scale = 0.5 | |
| 33 | scale_random = 1.0 | |
| 34 | scale_curve = SubResource( 2 ) | |
| 35 | color_ramp = SubResource( 5 ) | |
| 36 | ||
| 37 | [node name="Explosion" type="Particles2D"] | |
| 38 | amount = 100 | |
| 39 | lifetime = 0.5 | |
| 40 | explosiveness = 1.0 | |
| 41 | process_material = SubResource( 3 ) | |
| 42 | texture = ExtResource( 1 ) | |
| 43 | script = ExtResource( 2 ) | |
| 44 | ||
| 45 | [node name="Timer" type="Timer" parent="."] | |
| 46 | wait_time = 0.5 | |
| 47 | one_shot = true | |
| 48 | autostart = true | |
| 49 | ||
| 50 | [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] |