-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMob.tscn
67 lines (59 loc) · 2.05 KB
/
Mob.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
[gd_scene load_steps=10 format=3 uid="uid://rkdnhqgf2hpj"]
[ext_resource type="Script" path="res://Mob.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://baebwi77g5a0q" path="res://art/creep1/small_complete_creep1_1.png" id="2_k8il0"]
[ext_resource type="Texture2D" uid="uid://w3iqu7tfryjb" path="res://art/creep1/small_complete_creep1_2.png" id="3_mfwof"]
[ext_resource type="Texture2D" uid="uid://diygbdsst0qg" path="res://art/creep2/small_complete_creep2_1.png" id="4_u22kd"]
[ext_resource type="Texture2D" uid="uid://cgrm3u0ungo0f" path="res://art/creep2/small_complete_creep2_2.png" id="5_4u55q"]
[ext_resource type="Texture2D" uid="uid://calyucrd6fev" path="res://art/creep3/small_complete_creep3_1.png" id="6_qctv1"]
[ext_resource type="Texture2D" uid="uid://bnslbe8b4ijgg" path="res://art/creep3/small_complete_creep3_2.png" id="7_xp5tn"]
[sub_resource type="SpriteFrames" id="1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_k8il0")
}, {
"duration": 1.0,
"texture": ExtResource("3_mfwof")
}],
"loop": true,
"name": &"creep1",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_u22kd")
}, {
"duration": 1.0,
"texture": ExtResource("5_4u55q")
}],
"loop": true,
"name": &"creep2",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_qctv1")
}, {
"duration": 1.0,
"texture": ExtResource("7_xp5tn")
}],
"loop": true,
"name": &"creep3",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="2"]
radius = 37.0
height = 100.0
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource("1")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(1, 1, 1, 0.615686)
sprite_frames = SubResource("1")
animation = &"creep1"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("2")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]