fuzzyworld

godot-shooter / asteroids / files / effects / Explosion.tscn

Branch asteroids · default branch · all branches

Explosion.tscn

1.3 KB · history · blame

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