Files
aarpg/enemies/goblin/goblin.tscn
Andriy Yednarovych e877c5f058 init
2026-02-22 19:26:26 +01:00

833 lines
24 KiB
Plaintext

[gd_scene format=3 uid="uid://cksw7i4wuuald"]
[ext_resource type="Script" uid="uid://cmfpf1k80hvh7" path="res://enemies/scripts/enemy.gd" id="1_fn8x2"]
[ext_resource type="Texture2D" uid="uid://bxqdnnk4dqnu5" path="res://player/sprites/Shadow.png" id="2_gyubk"]
[ext_resource type="Texture2D" uid="uid://bvl5x6dfc8nr4" path="res://enemies/goblin/goblin.png" id="3_a1dmc"]
[ext_resource type="AudioStream" uid="uid://dcbm4phywpbji" path="res://enemies/slime/hit_01.wav" id="4_tpgwk"]
[ext_resource type="AudioStream" uid="uid://b0cm6n01nff3w" path="res://enemies/slime/hit_00.wav" id="5_hljvr"]
[ext_resource type="Script" uid="uid://bvjx5c5xd3rhw" path="res://enemies/scripts/enemy_state_machine.gd" id="6_v7wfw"]
[ext_resource type="Script" uid="uid://t2wl0iif703e" path="res://enemies/scripts/states/enemy_state_idle.gd" id="7_hssmb"]
[ext_resource type="Script" uid="uid://dqiqly265lt0u" path="res://enemies/scripts/states/enemy_state_wander.gd" id="8_erdao"]
[ext_resource type="Script" uid="uid://b6sf2nm67yulk" path="res://enemies/scripts/states/enemy_state_stun.gd" id="9_adllb"]
[ext_resource type="Script" uid="uid://qn1vn11fqgui" path="res://enemies/scripts/states/enemy_state_destroy.gd" id="10_a7klv"]
[ext_resource type="Script" uid="uid://cqeos77b55w5x" path="res://enemies/scripts/drop_data.gd" id="11_mr2i6"]
[ext_resource type="Resource" uid="uid://bc4mt6ldpoq18" path="res://items/gem.tres" id="12_qfsop"]
[ext_resource type="Resource" uid="uid://wif1wqrr83k0" path="res://items/apple.tres" id="13_ksuod"]
[ext_resource type="PackedScene" uid="uid://mwyvk4gke34" path="res://general/hurtbox/hurtbox.tscn" id="14_b2jpe"]
[ext_resource type="Texture2D" uid="uid://cvcxdarfsvvp" path="res://enemies/slime/DestroySmoke.png" id="15_qb7la"]
[ext_resource type="Script" uid="uid://dmcmplui6od1k" path="res://enemies/scripts/states/enemy_state_chase.gd" id="16_7cl5y"]
[ext_resource type="PackedScene" uid="uid://cda6fr5vhb4ty" path="res://general/hitbox/hitbox.tscn" id="16_mmp0q"]
[ext_resource type="PackedScene" uid="uid://4bv0pi2yn5es" path="res://enemies/vision_area.tscn" id="17_2fgol"]
[sub_resource type="CircleShape2D" id="CircleShape2D_5ctnu"]
radius = 13.0
[sub_resource type="CircleShape2D" id="CircleShape2D_klbxu"]
radius = 13.0
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_j284o"]
radius = 5.0
height = 22.0
[sub_resource type="Animation" id="Animation_j284o"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("shadow_sprite:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.61505616, 0.3702431, 0.12079669, 0.8039216)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("main_sprite/SpearHurtbox:position")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 14)]
}
[sub_resource type="Animation" id="Animation_a1dmc"]
resource_name = "chase_down"
length = 0.6
loop_mode = 1
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [12, 13, 14, 15]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite/SpearHurtbox:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45000002),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [Vector2(0, 11), Vector2(0, 11), Vector2(0, 17), Vector2(0, 11)]
}
[sub_resource type="Animation" id="Animation_2fgol"]
resource_name = "chase_side"
length = 0.6
loop_mode = 1
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [20, 21, 22, 23]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite/SpearHurtbox:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45000002),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [Vector2(4, 14), Vector2(2, 14), Vector2(9, 14), Vector2(4, 14)]
}
[sub_resource type="Animation" id="Animation_7cl5y"]
resource_name = "chase_up"
length = 0.6
loop_mode = 1
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [16, 17, 18, 19]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite/SpearHurtbox:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45000002),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [Vector2(0, 0), Vector2(0, 0), Vector2(0, -2), Vector2(0, 0)]
}
[sub_resource type="Animation" id="Animation_klbxu"]
resource_name = "destroy_down"
length = 0.6
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.35),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020354, 0, 1), Color(1, 1, 1, 1), Color(0.91764706, 0.07058824, 0, 0)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
tracks/3/type = "audio"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("audio")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("5_hljvr")
}],
"times": PackedFloat32Array(0.05)
}
tracks/3/use_blend = true
tracks/4/type = "animation"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("destroy_effect_sprite/AnimationPlayer")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"clips": PackedStringArray("destroy"),
"times": PackedFloat32Array(0)
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("shadow_sprite:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0, 0.35),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.61505616, 0.3702431, 0.12079669, 0.8039216), Color(0.6156863, 0.36862746, 0.12156863, 0)]
}
[sub_resource type="Animation" id="Animation_im24l"]
resource_name = "destroy_side"
length = 0.6
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [8]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.35),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020355, 0, 1), Color(1, 1, 1, 1), Color(0.91764706, 0.07058824, 0, 0)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
tracks/3/type = "audio"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("audio")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("5_hljvr")
}],
"times": PackedFloat32Array(0.05)
}
tracks/3/use_blend = true
tracks/4/type = "animation"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("destroy_effect_sprite/AnimationPlayer")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"clips": PackedStringArray("destroy"),
"times": PackedFloat32Array(0)
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("shadow_sprite:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0, 0.35),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.61505616, 0.3702431, 0.12079669, 0.8039216), Color(0.6156863, 0.36862746, 0.12156863, 0)]
}
[sub_resource type="Animation" id="Animation_mwtj1"]
resource_name = "destroy_up"
length = 0.6
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [4]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.35),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020355, 0, 1), Color(1, 1, 1, 1), Color(0.91764706, 0.07058824, 0, 0)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
tracks/3/type = "audio"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("audio")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("5_hljvr")
}],
"times": PackedFloat32Array(0.05)
}
tracks/3/use_blend = true
tracks/4/type = "animation"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("destroy_effect_sprite/AnimationPlayer")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"clips": PackedStringArray("destroy"),
"times": PackedFloat32Array(0)
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("shadow_sprite:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0, 0.35),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.61505616, 0.3702431, 0.12079669, 0.8039216), Color(0.6156863, 0.36862746, 0.12156863, 0)]
}
[sub_resource type="Animation" id="Animation_6326o"]
resource_name = "idle_down"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_57eei"]
resource_name = "idle_side"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [8]
}
[sub_resource type="Animation" id="Animation_u2l51"]
resource_name = "idle_up"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [4]
}
[sub_resource type="Animation" id="Animation_kag0e"]
resource_name = "stun_down"
length = 0.3
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020355, 0, 1), Color(1, 1, 1, 1)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
[sub_resource type="Animation" id="Animation_knvw0"]
resource_name = "stun_side"
length = 0.3
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [8]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020355, 0, 1), Color(1, 1, 1, 1)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
[sub_resource type="Animation" id="Animation_yuirh"]
resource_name = "stun_up"
length = 0.3
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(-2),
"update": 1,
"values": [4]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("main_sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.9182674, 0.07020355, 0, 1), Color(1, 1, 1, 1)]
}
tracks/2/type = "audio"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("audio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource("4_tpgwk")
}],
"times": PackedFloat32Array(0)
}
tracks/2/use_blend = true
[sub_resource type="Animation" id="Animation_2ui2u"]
resource_name = "walk_down"
length = 0.8
loop_mode = 1
step = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3]
}
[sub_resource type="Animation" id="Animation_bkm6f"]
resource_name = "walk_side"
length = 0.8
loop_mode = 1
step = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [8, 9, 10, 11]
}
[sub_resource type="Animation" id="Animation_5ctnu"]
resource_name = "walk_up"
length = 0.7
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("main_sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1.035265, 1, 1),
"update": 1,
"values": [4, 5, 6, 7]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kag0e"]
_data = {
&"RESET": SubResource("Animation_j284o"),
&"chase_down": SubResource("Animation_a1dmc"),
&"chase_side": SubResource("Animation_2fgol"),
&"chase_up": SubResource("Animation_7cl5y"),
&"destroy_down": SubResource("Animation_klbxu"),
&"destroy_side": SubResource("Animation_im24l"),
&"destroy_up": SubResource("Animation_mwtj1"),
&"idle_down": SubResource("Animation_6326o"),
&"idle_side": SubResource("Animation_57eei"),
&"idle_up": SubResource("Animation_u2l51"),
&"stun_down": SubResource("Animation_kag0e"),
&"stun_side": SubResource("Animation_knvw0"),
&"stun_up": SubResource("Animation_yuirh"),
&"walk_down": SubResource("Animation_2ui2u"),
&"walk_side": SubResource("Animation_bkm6f"),
&"walk_up": SubResource("Animation_5ctnu")
}
[sub_resource type="Resource" id="Resource_yu3x6"]
script = ExtResource("11_mr2i6")
item = ExtResource("12_qfsop")
max_amount = 4
metadata/_custom_type_script = "uid://cqeos77b55w5x"
[sub_resource type="Resource" id="Resource_okhmd"]
script = ExtResource("11_mr2i6")
item = ExtResource("13_ksuod")
drop_rate = 33.0
metadata/_custom_type_script = "uid://cqeos77b55w5x"
[sub_resource type="Animation" id="Animation_v3fw7"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_0oddt"]
resource_name = "destroy"
length = 0.6
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.099999994, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_klbxu"]
_data = {
&"RESET": SubResource("Animation_v3fw7"),
&"destroy": SubResource("Animation_0oddt")
}
[node name="Goblin" type="CharacterBody2D" unique_id=2039155988]
collision_layer = 256
collision_mask = 16
script = ExtResource("1_fn8x2")
[node name="Hurtbox" parent="." unique_id=38213362 instance=ExtResource("14_b2jpe")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox" unique_id=378145594]
position = Vector2(0, -7)
shape = SubResource("CircleShape2D_5ctnu")
debug_color = Color(0.6581531, 0.51457477, 0.100101404, 0.41960785)
[node name="Hitbox" parent="." unique_id=1876591880 instance=ExtResource("16_mmp0q")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" unique_id=708724179]
position = Vector2(0, -7)
shape = SubResource("CircleShape2D_klbxu")
debug_color = Color(0.99824387, 0, 0.15809265, 0.41960785)
[node name="shadow_sprite" type="Sprite2D" parent="." unique_id=41851023]
modulate = Color(0.61505616, 0.3702431, 0.12079669, 0.8039216)
position = Vector2(0, 2)
scale = Vector2(0.75, 0.75)
texture = ExtResource("2_gyubk")
[node name="main_sprite" type="Sprite2D" parent="." unique_id=2116964596]
position = Vector2(0, -14)
texture = ExtResource("3_a1dmc")
hframes = 8
vframes = 3
[node name="SpearHurtbox" parent="main_sprite" unique_id=426932876 instance=ExtResource("14_b2jpe")]
position = Vector2(0, 14)
monitoring = false
damage = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="main_sprite/SpearHurtbox" unique_id=1604105915]
position = Vector2(0, -7)
shape = SubResource("CircleShape2D_5ctnu")
debug_color = Color(0.5251133, 0.34901688, 0.016019357, 0.41960785)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=189927216]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_j284o")
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1867521179]
libraries/ = SubResource("AnimationLibrary_kag0e")
[node name="enemy_state_machine" type="Node2D" parent="." unique_id=208543397]
script = ExtResource("6_v7wfw")
[node name="idle" type="Node2D" parent="enemy_state_machine" unique_id=1109025638 node_paths=PackedStringArray("next_state")]
script = ExtResource("7_hssmb")
next_state = NodePath("../wander")
[node name="wander" type="Node2D" parent="enemy_state_machine" unique_id=1566208588 node_paths=PackedStringArray("next_state")]
script = ExtResource("8_erdao")
next_state = NodePath("../idle")
[node name="stun" type="Node2D" parent="enemy_state_machine" unique_id=1564475499 node_paths=PackedStringArray("next_state")]
script = ExtResource("9_adllb")
next_state = NodePath("../chase")
[node name="destroy" type="Node2D" parent="enemy_state_machine" unique_id=569812721]
script = ExtResource("10_a7klv")
drops = Array[ExtResource("11_mr2i6")]([SubResource("Resource_yu3x6"), SubResource("Resource_okhmd")])
[node name="chase" type="Node2D" parent="enemy_state_machine" unique_id=287992996 node_paths=PackedStringArray("vision_area", "attack_area", "next_state")]
script = ExtResource("16_7cl5y")
vision_area = NodePath("../../VisionArea")
attack_area = NodePath("../../main_sprite/SpearHurtbox")
next_state = NodePath("../idle")
[node name="audio" type="AudioStreamPlayer2D" parent="." unique_id=1148905292]
max_polyphony = 4
[node name="destroy_effect_sprite" type="Sprite2D" parent="." unique_id=837975864]
visible = false
position = Vector2(0, -9)
texture = ExtResource("15_qb7la")
hframes = 6
[node name="AnimationPlayer" type="AnimationPlayer" parent="destroy_effect_sprite" unique_id=1538706478]
libraries/ = SubResource("AnimationLibrary_klbxu")
[node name="VisionArea" parent="." unique_id=2078416065 instance=ExtResource("17_2fgol")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="VisionArea" unique_id=1816798882]
position = Vector2(0, -7)
polygon = PackedVector2Array(-16, 0, 16, 0, 128, 128, -128, 128)