godot-shooter / meteor / files / SmallExplosion.tscn
Branch meteor · default branch · all branches
SmallExplosion.tscn
236d1677 2023-11-01 Pavel Safronov | 1 | [gd_scene load_steps=5 format=2] |
| 2 | ||
5b18ed86 2023-11-01 Pavel Safronov | 3 | [ext_resource path="res://assets/kenney_simple-space/PNG/Default/star_small.png" type="Texture" id=1] |
236d1677 2023-11-01 Pavel Safronov | 4 | [ext_resource path="res://SmallExplosion.gd" type="Script" id=2] |
| 5 | ||
| 6 | [sub_resource type="Curve" id=1] | |
| 7 | _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ] | |
| 8 | ||
| 9 | [sub_resource type="Gradient" id=4] | |
| 10 | offsets = PoolRealArray( 0, 0.941935, 1 ) | |
| 11 | colors = PoolColorArray( 1, 1, 1, 1, 1, 0.0580645, 0.0580645, 1, 1, 0, 0, 1 ) | |
| 12 | ||
| 13 | [node name="SmallExplosion" type="CPUParticles2D"] | |
| 14 | amount = 25 | |
| 15 | lifetime = 0.5 | |
| 16 | explosiveness = 1.0 | |
| 17 | texture = ExtResource( 1 ) | |
| 18 | emission_shape = 1 | |
| 19 | emission_sphere_radius = 0.01 | |
| 20 | spread = 180.0 | |
| 21 | gravity = Vector2( 0, 0 ) | |
| 22 | initial_velocity = 200.0 | |
| 23 | initial_velocity_random = 0.52 | |
| 24 | damping = 1000.0 | |
| 25 | angle = 306.5 | |
| 26 | angle_random = 0.4 | |
| 27 | scale_amount = 0.5 | |
| 28 | scale_amount_random = 1.0 | |
| 29 | scale_amount_curve = SubResource( 1 ) | |
| 30 | color_ramp = SubResource( 4 ) | |
| 31 | script = ExtResource( 2 ) | |
| 32 | ||
| 33 | [node name="Timer" type="Timer" parent="."] | |
| 34 | wait_time = 0.5 | |
| 35 | one_shot = true | |
| 36 | autostart = true | |
| 37 | ||
| 38 | [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] |