Files
godot-demo-projects/mono/dodge_the_creeps/Mob.tscn
2022-03-27 19:06:05 -05:00

55 lines
1.6 KiB
Plaintext

[gd_scene load_steps=10 format=2]
[ext_resource path="res://Mob.cs" type="Script" id=1]
[ext_resource path="res://art/enemySwimming_1.png" type="Texture2D" id=2]
[ext_resource path="res://art/enemySwimming_2.png" type="Texture2D" id=3]
[ext_resource path="res://art/enemyWalking_1.png" type="Texture2D" id=4]
[ext_resource path="res://art/enemyWalking_2.png" type="Texture2D" id=5]
[ext_resource path="res://art/enemyFlyingAlt_1.png" type="Texture2D" id=6]
[ext_resource path="res://art/enemyFlyingAlt_2.png" type="Texture2D" id=7]
[sub_resource type="SpriteFrames" id=1]
animations = [{
"frames": [ExtResource( 4 ), ExtResource( 5 )],
"loop": true,
"name": "walk",
"speed": 4.0
}, {
"frames": [ExtResource( 6 ), ExtResource( 7 )],
"loop": true,
"name": "fly",
"speed": 3.0
}, {
"frames": [ExtResource( 2 ), ExtResource( 3 )],
"loop": true,
"name": "swim",
"speed": 4.0
}]
[sub_resource type="CapsuleShape2D" id=2]
radius = 35.8898
height = 29.3103
[node name="Mob" type="RigidDynamicBody2D" groups=["mobs"]]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.75, 0.75)
frames = SubResource( 1 )
animation = "walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource( 2 )
[node name="Visibility" type="VisibleOnScreenNotifier2D" parent="."]
position = Vector2(-0.315128, -9.53674e-07)
scale = Vector2(5.00208, 3.58402)
[connection signal="screen_exited" from="Visibility" to="." method="OnVisibilityScreenExited"]