-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShell.tscn
129 lines (110 loc) · 4.52 KB
/
Shell.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[gd_scene load_steps=17 format=2]
[ext_resource path="res://images/shell.png" type="Texture" id=1]
[ext_resource path="res://Shell.gd" type="Script" id=2]
[ext_resource path="res://images/boom1.png" type="Texture" id=3]
[ext_resource path="res://images/boom3.png" type="Texture" id=4]
[ext_resource path="res://images/boom4.png" type="Texture" id=5]
[ext_resource path="res://images/boom2.png" type="Texture" id=6]
[ext_resource path="res://images/big-shell.png" type="Texture" id=7]
[ext_resource path="res://images/small-shell.png" type="Texture" id=8]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 7 ), ExtResource( 8 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 4.9976
height = 12.3372
[sub_resource type="SpriteFrames" id=3]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 6 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 4 ) ],
"loop": false,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="ParticlesMaterial" id=4]
flag_disable_z = true
spread = 180.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 1000.0
initial_velocity_random = 0.34
angular_velocity = -608.91
angular_velocity_random = 0.3
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 41.54
scale_random = 0.75
color = Color( 0.270588, 0.231373, 0.231373, 1 )
[sub_resource type="CircleShape2D" id=5]
radius = 790.0
[sub_resource type="Gradient" id=6]
offsets = PoolRealArray( 0, 0.00974026, 0.246753, 0.568182 )
colors = PoolColorArray( 0, 0, 0, 1, 0.351562, 0.300751, 0.300751, 1, 0.478818, 0.478818, 0.478818, 1, 1, 1, 1, 1 )
[sub_resource type="GradientTexture" id=7]
gradient = SubResource( 6 )
[sub_resource type="ParticlesMaterial" id=8]
trail_divisor = 2
trail_color_modifier = SubResource( 7 )
emission_shape = 1
emission_sphere_radius = 4.0
flag_disable_z = true
gravity = Vector3( 0, 98, 0 )
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 1.2
color = Color( 0.780392, 0.764706, 0.764706, 1 )
[node name="Shell" type="Area2D" groups=[
"shell",
]]
position = Vector2( -0.408664, -0.25976 )
z_index = 3
script = ExtResource( 2 )
[node name="Sprite" type="AnimatedSprite" parent="."]
position = Vector2( 0.0745754, -11.1122 )
scale = Vector2( 0.063, 0.063 )
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0.0556774, -11.1362 )
shape = SubResource( 2 )
[node name="Explosion" type="AnimatedSprite" parent="."]
position = Vector2( 0, -18.5975 )
scale = Vector2( 0.08, 0.08 )
frames = SubResource( 3 )
speed_scale = 5.0
[node name="Particles2D" type="Particles2D" parent="Explosion"]
z_index = 5
emitting = false
amount = 30
lifetime = 0.5
one_shot = true
speed_scale = 3.11
explosiveness = 0.71
randomness = 0.55
process_material = SubResource( 4 )
[node name="ExplosionRange" type="Area2D" parent="Explosion"]
position = Vector2( 0, 232.469 )
scale = Vector2( 12.5, 12.5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Explosion/ExplosionRange"]
position = Vector2( 0, -18.5975 )
scale = Vector2( 0.08, 0.08 )
shape = SubResource( 5 )
[node name="Position2D" type="Position2D" parent="Explosion/ExplosionRange"]
position = Vector2( 74.9046, -18.6998 )
[node name="Trail" type="Particles2D" parent="."]
amount = 17
speed_scale = 3.46
process_material = SubResource( 8 )
[connection signal="area_entered" from="." to="." method="_on_Shell_area_entered"]
[connection signal="area_exited" from="." to="." method="_on_shell_area_exited"]
[connection signal="body_entered" from="." to="." method="_on_shell_body_entered"]
[connection signal="animation_finished" from="Explosion" to="." method="_on_Explosion_animation_finished"]
[connection signal="area_entered" from="Explosion/ExplosionRange" to="." method="_on_Area2D_area_entered"]
[connection signal="area_entered" from="Explosion/ExplosionRange" to="." method="_on_ExplosionRange_area_entered"]
[connection signal="area_exited" from="Explosion/ExplosionRange" to="." method="_on_Area2D_area_exited"]
[connection signal="area_exited" from="Explosion/ExplosionRange" to="." method="_on_ExplosionRange_area_exited"]
[connection signal="body_entered" from="Explosion/ExplosionRange" to="." method="_on_Area2D_body_entered"]
[connection signal="body_entered" from="Explosion/ExplosionRange" to="." method="_on_ExplosionRange_body_entered"]
[connection signal="body_exited" from="Explosion/ExplosionRange" to="." method="_on_Area2D_body_exited"]
[connection signal="body_exited" from="Explosion/ExplosionRange" to="." method="_on_ExplosionRange_body_exited"]