[gd_scene load_steps=8 format=3 uid="uid://dcv3c8wyqyypr"]

[ext_resource type="Texture2D" uid="uid://byhscsj8m2fsd" path="res://assets/arrow_up.png" id="1_udfpr"]
[ext_resource type="Script" path="res://mob.gd" id="1_v7kd7"]
[ext_resource type="Texture2D" uid="uid://cdyqgw8q4ixfm" path="res://assets/arrow_down.png" id="2_6f2og"]
[ext_resource type="Texture2D" uid="uid://br0of4r3mfawy" path="res://assets/arrow_left.png" id="3_3kqih"]
[ext_resource type="Texture2D" uid="uid://ndanhgshr8ah" path="res://assets/arrow_right.png" id="4_4b2dt"]

[sub_resource type="SpriteFrames" id="SpriteFrames_krbdm"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_6f2og")
}],
"loop": true,
"name": &"down",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_3kqih")
}],
"loop": true,
"name": &"left",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_4b2dt")
}],
"loop": true,
"name": &"right",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_udfpr")
}],
"loop": true,
"name": &"up",
"speed": 1.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_mxsp1"]
size = Vector2(141, 147)

[node name="Mob" type="RigidBody2D" groups=["Mob"]]
gravity_scale = 0.3
script = ExtResource("1_v7kd7")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." groups=["Mob"]]
scale = Vector2(5, 5)
sprite_frames = SubResource("SpriteFrames_krbdm")
animation = &"up"

[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." groups=["Mob"]]

[node name="CollisionShape2D" type="CollisionShape2D" parent="." groups=["Mob"]]
shape = SubResource("RectangleShape2D_mxsp1")

[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
