mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://cao351pllxqpa"]
|
|
|
|
[ext_resource type="Script" uid="uid://cypxpb8arjrqt" path="res://mob.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://dun74wipekpfq" path="res://art/enemyFlyingAlt_1.png" id="2"]
|
|
[ext_resource type="Texture2D" uid="uid://vusf51hepduk" path="res://art/enemyFlyingAlt_2.png" id="3"]
|
|
[ext_resource type="Texture2D" uid="uid://dgwhuvn7qb4iy" path="res://art/enemyWalking_1.png" id="4"]
|
|
[ext_resource type="Texture2D" uid="uid://dyw702efe6meu" path="res://art/enemyWalking_2.png" id="5"]
|
|
[ext_resource type="Texture2D" uid="uid://d182mv7y80xqy" path="res://art/enemySwimming_1.png" id="6"]
|
|
[ext_resource type="Texture2D" uid="uid://dmgglhdyowipd" path="res://art/enemySwimming_2.png" id="7"]
|
|
|
|
[sub_resource type="SpriteFrames" id="1"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fly",
|
|
"speed": 3.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7")
|
|
}],
|
|
"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="_on_VisibilityNotifier2D_screen_exited"]
|