TH-Kibidanshaku/entity/mob/mob_enemy.tscn
2024-01-03 13:40:31 +09:00

58 lines
1.7 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://bp6kld25usim4"]
[ext_resource type="Texture2D" uid="uid://2er7ud1ssj70" path="res://assets/images/mob/mob_A0.svg" id="1_m208q"]
[ext_resource type="Script" path="res://entity/mob/mob_enemy.gd" id="1_nmxwn"]
[ext_resource type="Texture2D" uid="uid://txkug16xogsh" path="res://assets/images/mob/mob_A1.svg" id="2_ho6m5"]
[ext_resource type="Texture2D" uid="uid://bgbjvearadscl" path="res://assets/images/effect/death0.svg" id="2_v08g0"]
[ext_resource type="Texture2D" uid="uid://cbwskucribly0" path="res://assets/images/effect/death1.svg" id="3_qfb3p"]
[ext_resource type="Texture2D" uid="uid://blbv74h0mwgwe" path="res://assets/images/effect/death2.svg" id="4_dqgde"]
[sub_resource type="SpriteFrames" id="SpriteFrames_620mj"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_v08g0")
}, {
"duration": 1.0,
"texture": ExtResource("3_qfb3p")
}, {
"duration": 1.0,
"texture": ExtResource("4_dqgde")
}],
"loop": false,
"name": &"death",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_m208q")
}, {
"duration": 1.0,
"texture": ExtResource("2_ho6m5")
}],
"loop": true,
"name": &"mobA",
"speed": 8.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_dopta"]
radius = 22.0
height = 80.0
[node name="MobEnemy" type="Area2D"]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_nmxwn")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_620mj")
animation = &"death"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("CapsuleShape2D_dopta")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]