61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://cb2t7bvvf3gwh"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b358op5h1y83m" path="res://assets/slime/Slime.blend" id="1_1h1hj"]
|
|
[ext_resource type="Script" path="res://enemy/Enemy.gd" id="1_r5888"]
|
|
[ext_resource type="PackedScene" uid="uid://2bbycjulf00g" path="res://character/health/HealthComponent.tscn" id="2_fsqxc"]
|
|
[ext_resource type="PackedScene" uid="uid://x102pryt2s5a" path="res://character/movement/MovementComponent.tscn" id="3_2phqx"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ub3kk"]
|
|
height = 0.5
|
|
radius = 0.35
|
|
|
|
[sub_resource type="Animation" id="Animation_qls31"]
|
|
resource_name = "slime_fall"
|
|
tracks/0/type = "scale_3d"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Slime")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = PackedFloat32Array(0, 1, 0.5, 1.2, 0.5, 0.5, 1, 0.6, 1, 0.6, 1, 1, 0.5, 1.2, 0.5)
|
|
|
|
[sub_resource type="Animation" id="Animation_mdtm7"]
|
|
resource_name = "slime_idle"
|
|
length = 2.0
|
|
loop_mode = 1
|
|
tracks/0/type = "scale_3d"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Slime")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1, 0.5, 1, 0.9, 1.1, 0.9, 1, 1, 1, 1, 1, 1.5, 1, 1.1, 0.9, 1.1, 2, 1, 1, 1, 1)
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1bw8m"]
|
|
_data = {
|
|
"slime_fall": SubResource("Animation_qls31"),
|
|
"slime_idle": SubResource("Animation_mdtm7")
|
|
}
|
|
|
|
[node name="Slime" type="CharacterBody3D" groups=["enemy"]]
|
|
collision_layer = 256
|
|
collision_mask = 769
|
|
script = ExtResource("1_r5888")
|
|
|
|
[node name="Model" parent="." instance=ExtResource("1_1h1hj")]
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0452515, 0.3, 0)
|
|
shape = SubResource("CylinderShape3D_ub3kk")
|
|
|
|
[node name="Animation" type="AnimationPlayer" parent="."]
|
|
root_node = NodePath("../Model")
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_1bw8m")
|
|
}
|
|
autoplay = "slime_idle"
|
|
|
|
[node name="Health" parent="." instance=ExtResource("2_fsqxc")]
|
|
|
|
[node name="Movement" parent="." instance=ExtResource("3_2phqx")]
|