-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmob.tscn
65 lines (57 loc) · 2.17 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
[gd_scene load_steps=11 format=3 uid="uid://b3qvidwa68v1s"]
[ext_resource type="Script" path="res://mob.gd" id="1_3se2i"]
[ext_resource type="Texture2D" uid="uid://cypbjgy7aag4q" path="res://art/mob_walk[1-7].png" id="2_0jb54"]
[ext_resource type="Texture2D" uid="uid://dmlpwbyfmjo7w" path="res://art/mob_walk[2-7].png" id="3_yxmar"]
[ext_resource type="Texture2D" uid="uid://46hnme8gw7do" path="res://art/mob_walk[3-7].png" id="4_2jyqh"]
[ext_resource type="Texture2D" uid="uid://co5qn1sogfh04" path="res://art/mob_walk[4-7].png" id="5_1brn2"]
[ext_resource type="Texture2D" uid="uid://x85t0tskipdf" path="res://art/mob_walk[5-7].png" id="6_nvcmv"]
[ext_resource type="Texture2D" uid="uid://uknckai2okmm" path="res://art/mob_walk[6-7].png" id="7_kthft"]
[ext_resource type="Texture2D" uid="uid://qcrhifffrapm" path="res://art/mob_walk[7-7].png" id="8_gpwma"]
[sub_resource type="SpriteFrames" id="SpriteFrames_cj0lg"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_0jb54")
}, {
"duration": 1.0,
"texture": ExtResource("3_yxmar")
}, {
"duration": 1.0,
"texture": ExtResource("4_2jyqh")
}, {
"duration": 1.0,
"texture": ExtResource("5_1brn2")
}, {
"duration": 1.0,
"texture": ExtResource("6_nvcmv")
}, {
"duration": 1.0,
"texture": ExtResource("7_kthft")
}, {
"duration": 1.0,
"texture": ExtResource("8_gpwma")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_r5h0u"]
radius = 30.0
[node name="Mob" type="RigidBody2D"]
collision_mask = 0
gravity_scale = 2.66454e-15
script = ExtResource("1_3se2i")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.4, 0.4)
sprite_frames = SubResource("SpriteFrames_cj0lg")
animation = &"walk"
frame = 5
frame_progress = 0.987368
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_r5h0u")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
position = Vector2(-10, 0)
scale = Vector2(2, 3)
rect = Rect2(-10, -10, 30, 20)
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]