-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemy.tscn
77 lines (62 loc) · 2.34 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[gd_scene load_steps=9 format=3 uid="uid://cgm8j7er3a3mx"]
[ext_resource type="Script" path="res://basic_enemy.gd" id="1_we5as"]
[ext_resource type="Texture2D" uid="uid://pyktyvyb3bkt" path="res://Images/Enemy/Amogi.png" id="2_rlggl"]
[ext_resource type="Texture2D" uid="uid://dg4f8j2g7u83i" path="res://Images/Enemy/Amogi(1).png" id="3_ert10"]
[ext_resource type="Texture2D" uid="uid://beqg2adf8egso" path="res://Images/Enemy/Amogi(2).png" id="4_auiro"]
[sub_resource type="SpriteFrames" id="SpriteFrames_q7n4o"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_rlggl")
}, {
"duration": 1.0,
"texture": ExtResource("3_ert10")
}, {
"duration": 1.0,
"texture": ExtResource("4_auiro")
}, {
"duration": 1.0,
"texture": ExtResource("3_ert10")
}],
"loop": true,
"name": &"moving",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f3f7c"]
size = Vector2(83, 39)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6vah5"]
size = Vector2(79, 71)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2lc8f"]
size = Vector2(81, 71.5)
[node name="CharacterBody2D" type="CharacterBody2D"]
collision_layer = 5
collision_mask = 5
floor_max_angle = 0.0
safe_margin = 0.001
script = ExtResource("1_we5as")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_q7n4o")
animation = &"moving"
frame_progress = 0.914267
[node name="Killbox" type="Area2D" parent="."]
position = Vector2(0.5, 4)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Killbox"]
position = Vector2(0, -55.5)
shape = SubResource("RectangleShape2D_f3f7c")
[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 4)
shape = SubResource("RectangleShape2D_6vah5")
[node name="Hitbox" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4
[node name="DownRay" type="RayCast2D" parent="Hitbox"]
position = Vector2(39, -2)
target_position = Vector2(0, 47)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2(0.5, 3.75)
shape = SubResource("RectangleShape2D_2lc8f")
debug_color = Color(0.776214, 0, 0.0615261, 0.42)
[node name="SideRay" type="RayCast2D" parent="Hitbox"]
position = Vector2(16, 39)
target_position = Vector2(25, 0)
[connection signal="body_shape_entered" from="Killbox" to="." method="_on_killbox_body_shape_entered"]