Files

68 lines
1.9 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://km3p7l56sgtx"]
[ext_resource type="Script" uid="uid://5w3j3ktix1b7" path="res://Mob.cs" id="1"]
[ext_resource type="Texture2D" uid="uid://beacgh4jiv56a" path="res://art/enemySwimming_1.png" id="2"]
[ext_resource type="Texture2D" uid="uid://dsqg2hfvjmjbw" path="res://art/enemySwimming_2.png" id="3"]
[ext_resource type="Texture2D" uid="uid://cchqjtuxkr3x" path="res://art/enemyWalking_1.png" id="4"]
[ext_resource type="Texture2D" uid="uid://2ecehadplweh" path="res://art/enemyWalking_2.png" id="5"]
[ext_resource type="Texture2D" uid="uid://dln6x37ad5tvn" path="res://art/enemyFlyingAlt_1.png" id="6"]
[ext_resource type="Texture2D" uid="uid://clanew3yuugsv" path="res://art/enemyFlyingAlt_2.png" id="7"]
[sub_resource type="SpriteFrames" id="1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("6")
}, {
"duration": 1.0,
"texture": ExtResource("7")
}],
"loop": true,
"name": &"fly",
"speed": 3.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2")
}, {
"duration": 1.0,
"texture": ExtResource("3")
}],
"loop": true,
"name": &"swim",
"speed": 4.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4")
}, {
"duration": 1.0,
"texture": ExtResource("5")
}],
"loop": true,
"name": &"walk",
"speed": 4.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="."]
scale = Vector2(0.75, 0.75)
sprite_frames = SubResource("1")
animation = &"walk"
[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="OnVisibleOnScreenNotifier2DScreenExited"]