-
Notifications
You must be signed in to change notification settings - Fork 1
/
projectile.tscn
126 lines (97 loc) · 3.67 KB
/
projectile.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
[gd_scene load_steps=20 format=2]
[ext_resource path="res://bullet.png" type="Texture" id=1]
[ext_resource path="res://explosion.gd" type="Script" id=2]
[ext_resource path="res://projectile.gd" type="Script" id=3]
[ext_resource path="res://sfx/explosions/explodemini.wav" type="AudioStream" id=4]
[ext_resource path="res://explosion.png" type="Texture" id=5]
[sub_resource type="CircleShape2D" id=1]
radius = 487.0
[sub_resource type="CircleShape2D" id=2]
[sub_resource type="CircleShape2D" id=3]
radius = 31.8115
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 5 )
region = Rect2( 0, 0, 32, 32 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 5 )
region = Rect2( 32, 0, 32, 32 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 5 )
region = Rect2( 64, 0, 32, 32 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 5 )
region = Rect2( 0, 32, 32, 32 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 5 )
region = Rect2( 32, 32, 32, 32 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 5 )
region = Rect2( 64, 32, 32, 32 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 5 )
region = Rect2( 0, 64, 32, 32 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 5 )
region = Rect2( 32, 64, 32, 32 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 5 )
region = Rect2( 64, 64, 32, 32 )
[sub_resource type="SpriteFrames" id=13]
animations = [ {
"frames": [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": false,
"name": "default",
"speed": 30.0
} ]
[sub_resource type="Curve" id=14]
_data = [ Vector2( 0, 1 ), 0.0, -0.255595, 0, 0, Vector2( 1, 0 ), -1.55061, 0.0, 0, 0 ]
[node name="Projectile" type="Node2D"]
script = ExtResource( 3 )
[node name="sprite" type="Sprite" parent="."]
modulate = Color( 1, 0.352941, 0, 1 )
texture = ExtResource( 1 )
[node name="vel_line" type="Line2D" parent="."]
visible = false
points = PoolVector2Array( 0, 0, 100, 0 )
width = 1.0
default_color = Color( 0.4, 0.501961, 1, 1 )
[node name="gravity_range" type="Area2D" parent="."]
visible = false
collision_layer = 4
[node name="shape" type="CollisionShape2D" parent="gravity_range"]
shape = SubResource( 1 )
[node name="collision_range" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 3
[node name="shape" type="CollisionShape2D" parent="collision_range"]
shape = SubResource( 2 )
[node name="explosion_range" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 2
[node name="shape" type="CollisionShape2D" parent="explosion_range"]
shape = SubResource( 3 )
[node name="explosion" type="Node2D" parent="explosion_range"]
visible = false
[node name="sfx" type="AudioStreamPlayer" parent="explosion_range/explosion"]
stream = ExtResource( 4 )
[node name="sprite" type="AnimatedSprite" parent="explosion_range/explosion"]
scale = Vector2( 2, 2 )
frames = SubResource( 13 )
script = ExtResource( 2 )
[node name="trail" type="CPUParticles2D" parent="."]
modulate = Color( 1, 0.32549, 0.137255, 1 )
position = Vector2( -0.132431, 0.264866 )
amount = 25
speed_scale = 3.0
local_coords = false
texture = ExtResource( 1 )
emission_shape = 1
emission_sphere_radius = 1.0
direction = Vector2( 1, 1 )
gravity = Vector2( 0, 0 )
initial_velocity = 3.0
scale_amount = 1.15
scale_amount_curve = SubResource( 14 )
[connection signal="body_entered" from="gravity_range" to="." method="_on_range_body_entered"]
[connection signal="body_exited" from="gravity_range" to="." method="_on_range_body_exited"]
[connection signal="body_entered" from="collision_range" to="." method="_on_collision_range_body_entered"]