dodge-the-creeps/Scenes/Mob.tscn

68 lines
2.1 KiB
Text
Raw Normal View History

2024-02-20 18:56:39 +03:00
[gd_scene load_steps=10 format=3 uid="uid://dx8lbd6yta0qx"]
[ext_resource type="Script" path="res://Scripts/Mob.gd" id="1_aqhhj"]
[ext_resource type="Texture2D" uid="uid://bpkub2eg6kebd" path="res://Assets/Art/enemyFlyingAlt_2.png" id="2_0cpby"]
[ext_resource type="Texture2D" uid="uid://ctsrwcm4jc3x5" path="res://Assets/Art/enemyFlyingAlt_1.png" id="3_dre3a"]
[ext_resource type="Texture2D" uid="uid://bid2fwsrtvv4l" path="res://Assets/Art/enemySwimming_2.png" id="4_51rn1"]
[ext_resource type="Texture2D" uid="uid://kbh7sq05r8j1" path="res://Assets/Art/enemySwimming_1.png" id="5_m5sx5"]
[ext_resource type="Texture2D" uid="uid://bqldqchvwofl2" path="res://Assets/Art/enemyWalking_2.png" id="6_i5kd4"]
[ext_resource type="Texture2D" uid="uid://ctp3mbct23o8n" path="res://Assets/Art/enemyWalking_1.png" id="7_46m64"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xgks3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_0cpby")
}, {
"duration": 1.0,
"texture": ExtResource("3_dre3a")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_51rn1")
}, {
"duration": 1.0,
"texture": ExtResource("5_m5sx5")
}],
"loop": true,
"name": &"swim",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_i5kd4")
}, {
"duration": 1.0,
"texture": ExtResource("7_46m64")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_s3v50"]
radius = 40.0
height = 80.0
[node name="Mob" type="RigidBody2D"]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource("1_aqhhj")
[node name="Sprite" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.75, 0.75)
sprite_frames = SubResource("SpriteFrames_xgks3")
animation = &"fly"
frame_progress = 0.574266
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_s3v50")
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
[connection signal="screen_exited" from="VisibleOnScreenEnabler2D" to="." method="_on_visible_on_screen_enabler_2d_screen_exited"]