68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://bqiei7hs3em6q"]
|
|
|
|
[ext_resource type="Script" path="res://Mob.gd" id="1_6ybt2"]
|
|
[ext_resource type="Texture2D" uid="uid://cmpgjxdm8o7m2" path="res://mob/walk0.png" id="2_1gffc"]
|
|
[ext_resource type="Texture2D" uid="uid://bti2frgpnknav" path="res://mob/fly0.png" id="2_7av1t"]
|
|
[ext_resource type="Texture2D" uid="uid://cq7pjw7fh5ea2" path="res://mob/fly1.png" id="3_73diy"]
|
|
[ext_resource type="Texture2D" uid="uid://bxecwi7o3hwj2" path="res://mob/walk1.png" id="3_l1ff2"]
|
|
[ext_resource type="Texture2D" uid="uid://dufno6gspyfhh" path="res://mob/walk2.png" id="4_h8mys"]
|
|
[ext_resource type="Texture2D" uid="uid://dcs6138ftv0qp" path="res://mob/fly2.png" id="4_xwgb2"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_y5ply"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_7av1t")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_73diy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_xwgb2")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fly",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_1gffc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_l1ff2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_1gffc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_h8mys")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_fyywn"]
|
|
radius = 46.01
|
|
height = 124.22
|
|
|
|
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
|
|
collision_mask = 0
|
|
gravity_scale = 0.0
|
|
script = ExtResource("1_6ybt2")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
scale = Vector2(0.1, 0.1)
|
|
sprite_frames = SubResource("SpriteFrames_y5ply")
|
|
animation = &"fly"
|
|
frame_progress = 0.215343
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(-4.01, -13.11)
|
|
shape = SubResource("CapsuleShape2D_fyywn")
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|