-
Notifications
You must be signed in to change notification settings - Fork 1
/
enemy_1.tscn
84 lines (70 loc) · 2.34 KB
/
enemy_1.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
[gd_scene load_steps=11 format=3 uid="uid://cmjngy5pnyo0p"]
[ext_resource type="Script" path="res://enemy_1.gd" id="1_3cmby"]
[ext_resource type="Texture2D" uid="uid://b6sk321d8il31" path="res://Enemy1.png" id="1_fhu77"]
[ext_resource type="Texture2D" uid="uid://d3enq20o1j3xb" path="res://HardEnemy.png" id="3_22kqg"]
[ext_resource type="Theme" uid="uid://c54kwsqechm6o" path="res://new_theme.tres" id="4_h06ip"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qjvpp"]
atlas = ExtResource("1_fhu77")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ohb41"]
atlas = ExtResource("1_fhu77")
region = Rect2(0, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_o3bkh"]
atlas = ExtResource("3_22kqg")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_x5ssw"]
atlas = ExtResource("3_22kqg")
region = Rect2(0, 32, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_8icb0"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qjvpp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ohb41")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_o3bkh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_x5ssw")
}],
"loop": true,
"name": &"hardenemy",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_s3bhx"]
height = 32.0
[node name="Enemy1" type="CharacterBody2D"]
scale = Vector2(2, 2)
collision_layer = 2
script = ExtResource("1_3cmby")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_8icb0")
speed_scale = 0.8
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 5)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_s3bhx")
[node name="EnemyArea" type="Area2D" parent="."]
[node name="CollisionShape2D2" type="CollisionShape2D" parent="EnemyArea"]
position = Vector2(0, 5)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_s3bhx")
[node name="Label" type="Label" parent="."]
texture_filter = 1
offset_left = -5.0
offset_top = -30.5
offset_right = 20.0
offset_bottom = 28.5
scale = Vector2(0.4, 0.4)
theme = ExtResource("4_h06ip")
text = "5"
[connection signal="area_entered" from="EnemyArea" to="." method="_on_area_2d_area_entered"]