[gd_scene load_steps=16 format=3 uid="uid://dbgsb7uyh2e5k"]

[ext_resource type="Script" uid="uid://bpabecs0hf676" path="res://scripts/spit_dragon.gd" id="1_6aivh"]
[ext_resource type="Texture2D" uid="uid://b5ty5fqjdnlfu" path="res://assets/enemies/huronverde_1.png" id="2_3h3g6"]
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="2_6qa8c"]
[ext_resource type="PackedScene" uid="uid://bgpha7wiajw6q" path="res://scenes/mask_drop.tscn" id="2_new7s"]
[ext_resource type="Texture2D" uid="uid://crwb7susv0apj" path="res://assets/enemies/huronverde_2.png" id="3_6qa8c"]
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_r5vkq"]
[ext_resource type="Texture2D" uid="uid://c2oa1go8kc5pv" path="res://assets/enemies/huronverde_3.png" id="4_6si3t"]
[ext_resource type="PackedScene" uid="uid://0n57icfpulmc" path="res://scenes/hearts.tscn" id="4_a2jab"]
[ext_resource type="PackedScene" uid="uid://bmwgnwqj3scm5" path="res://scenes/scythe_attack.tscn" id="5_5psll"]
[ext_resource type="Texture2D" uid="uid://b451nklnl5d3v" path="res://assets/enemies/huronverde_4.png" id="5_pjesh"]
[ext_resource type="PackedScene" uid="uid://dfad6rsacpogt" path="res://scenes/spit.tscn" id="6_gtnbv"]
[ext_resource type="Texture2D" uid="uid://bld52vfos65qa" path="res://assets/enemies/huronverde_5.png" id="6_l0832"]
[ext_resource type="Texture2D" uid="uid://dgpuc3ej8t6s1" path="res://assets/enemies/huronverde_6.png" id="7_new7s"]

[sub_resource type="CircleShape2D" id="CircleShape2D_6si3t"]
radius = 16.03122

[sub_resource type="SpriteFrames" id="SpriteFrames_r5vkq"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_3h3g6")
}, {
"duration": 1.0,
"texture": ExtResource("3_6qa8c")
}, {
"duration": 1.0,
"texture": ExtResource("4_6si3t")
}],
"loop": true,
"name": &"attack",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_pjesh")
}, {
"duration": 1.0,
"texture": ExtResource("6_l0832")
}, {
"duration": 1.0,
"texture": ExtResource("7_new7s")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="SpitDragon" type="CharacterBody2D" groups=["enemy"]]
script = ExtResource("1_6aivh")
mask_drop = ExtResource("2_new7s")
death_explosion = ExtResource("3_r5vkq")
heart_attack = ExtResource("4_a2jab")
scithe_attack = ExtResource("5_5psll")
spit_attack = ExtResource("6_gtnbv")
flee_range = 50
aproach_range = 150
current_mask = 2

[node name="Shadow" type="Node2D" parent="."]
position = Vector2(4, 24)
script = ExtResource("2_6qa8c")
shadow_size = 16.425
metadata/_custom_type_script = "uid://synocbtvgrf4"

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 8)
shape = SubResource("CircleShape2D_6si3t")

[node name="Anim" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_r5vkq")
autoplay = "default"
frame_progress = 0.56712055
