Improved respawn
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://cb2t7bvvf3gwh"]
|
||||
[gd_scene load_steps=14 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://player/health/HealthComponent.tscn" id="2_fsqxc"]
|
||||
[ext_resource type="PackedScene" uid="uid://x102pryt2s5a" path="res://player/movement/MovementComponent.tscn" id="3_2phqx"]
|
||||
[ext_resource type="PackedScene" uid="uid://6jpnl6c4fdvo" path="res://player/hud/HUDComponent.tscn" id="3_4jtio"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfvudkup0xsq4" path="res://enemy/loot/LootComponent.tscn" id="6_68kgw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfvudkup0xsq4" path="res://enemy/death/DeathComponent.tscn" id="6_68kgw"]
|
||||
[ext_resource type="PackedScene" uid="uid://dl4vcp04t8iyr" path="res://item/soul/Soul.tscn" id="7_i0rtb"]
|
||||
[ext_resource type="Script" path="res://enemy/EnemyController.gd" id="8_b7r6l"]
|
||||
|
||||
@ -13,6 +13,16 @@
|
||||
height = 0.5
|
||||
radius = 0.35
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vjs0t"]
|
||||
resource_name = "slime_death"
|
||||
tracks/0/type = "scale_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1, 1, 1, 1.1, 0.7, 1.1)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qls31"]
|
||||
resource_name = "slime_fall"
|
||||
tracks/0/type = "scale_3d"
|
||||
@ -37,6 +47,7 @@ tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1, 0.5, 1, 0.9, 1.1, 0.9, 1, 1, 1
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1bw8m"]
|
||||
_data = {
|
||||
"slime_death": SubResource("Animation_vjs0t"),
|
||||
"slime_fall": SubResource("Animation_qls31"),
|
||||
"slime_idle": SubResource("Animation_mdtm7")
|
||||
}
|
||||
@ -69,8 +80,10 @@ max_value = 100.0
|
||||
[node name="Movement" parent="." instance=ExtResource("3_2phqx")]
|
||||
move_speed = 0.5
|
||||
|
||||
[node name="Loot" parent="." node_paths=PackedStringArray("health") instance=ExtResource("6_68kgw")]
|
||||
[node name="Death" parent="." node_paths=PackedStringArray("health", "hud", "animation") instance=ExtResource("6_68kgw")]
|
||||
health = NodePath("../Health")
|
||||
hud = NodePath("../HUD")
|
||||
animation = NodePath("../Animation")
|
||||
drop = ExtResource("7_i0rtb")
|
||||
|
||||
[node name="EnemyController" type="Node" parent="."]
|
||||
|
Reference in New Issue
Block a user