-
Notifications
You must be signed in to change notification settings - Fork 1
/
enemy_frog.tscn
119 lines (98 loc) · 3.45 KB
/
enemy_frog.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
[gd_scene load_steps=17 format=3 uid="uid://dqfd4e5ehuf3o"]
[ext_resource type="Script" path="res://enemy_frog.gd" id="1_tymlo"]
[ext_resource type="Texture2D" uid="uid://brmi01x54ec7w" path="res://Free/Main Characters/Ninja Frog/Idle (32x32).png" id="2_0en22"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5f7p2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_bwk1p"]
atlas = ExtResource("2_0en22")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_law7i"]
atlas = ExtResource("2_0en22")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_pg18t"]
atlas = ExtResource("2_0en22")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_f3qb8"]
atlas = ExtResource("2_0en22")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_i0x8x"]
atlas = ExtResource("2_0en22")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8bj52"]
atlas = ExtResource("2_0en22")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_csss6"]
atlas = ExtResource("2_0en22")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nqoom"]
atlas = ExtResource("2_0en22")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3os2a"]
atlas = ExtResource("2_0en22")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cxoe5"]
atlas = ExtResource("2_0en22")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hqjgp"]
atlas = ExtResource("2_0en22")
region = Rect2(320, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_d813k"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bwk1p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_law7i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pg18t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f3qb8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i0x8x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8bj52")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_csss6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nqoom")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3os2a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cxoe5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hqjgp")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [],
"loop": true,
"name": &"jump",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_x28lo"]
radius = 152.003
[node name="enemy_frog" type="CharacterBody2D"]
script = ExtResource("1_tymlo")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(1, -12)
shape = SubResource("RectangleShape2D_5f7p2")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -16)
sprite_frames = SubResource("SpriteFrames_d813k")
animation = &"idle"
[node name="player_detection" type="Area2D" parent="AnimatedSprite2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite2D/player_detection"]
shape = SubResource("CircleShape2D_x28lo")
[connection signal="body_entered" from="AnimatedSprite2D/player_detection" to="." method="_on_player_detection_body_entered"]
[connection signal="body_exited" from="AnimatedSprite2D/player_detection" to="." method="_on_player_detection_body_exited"]