-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.tscn
63 lines (51 loc) · 1.73 KB
/
Enemy.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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Enemy.gd" type="Script" id=1]
[ext_resource path="res://gfx/enemy0001.png" type="Texture" id=2]
[ext_resource path="res://gfx/enemy0000.png" type="Texture" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 10.1935
height = 34.3474
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 2 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[node name="Enemy" type="Area2D"]
position = Vector2( -61.9757, -66.0222 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 1 )
part_spawn_rate = 0.3
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 2, 2 )
shape = SubResource( 1 )
[node name="Sprite" type="AnimatedSprite" parent="."]
scale = Vector2( 2, 2 )
frames = SubResource( 2 )
frame = 1
playing = true
[node name="Path2D" type="Path2D" parent="."]
position = Vector2( 0.805847, 1.45062 )
curve = null
__meta__ = {
"_edit_lock_": true
}
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2( -176.986, 232.475 )
rotation = -0.1762
loop = false
__meta__ = {
"_edit_lock_": true
}
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[node name="SpawnTimer" type="Timer" parent="."]
one_shot = true
[node name="BulletTimer" type="Timer" parent="."]
one_shot = true
[node name="ShootTimer" type="Timer" parent="."]
[connection signal="area_entered" from="." to="." method="_on_Enemy_area_entered"]
[connection signal="timeout" from="SpawnTimer" to="." method="spawn" flags=6]
[connection signal="timeout" from="BulletTimer" to="." method="_on_BulletTimer_timeout"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]