[gd_scene format=3 uid="uid://ya6jfltqnl1b"]

[ext_resource type="Script" uid="uid://bprbgsk73wmb8" path="res://scripts/heart_enemy.gd" id="1_o614x"]
[ext_resource type="Resource" uid="uid://jar2mye8do0c" path="res://resources/hearts.tres" id="2_2tr1s"]
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_n20dk"]
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_ul27a"]
[ext_resource type="Texture2D" uid="uid://c0e666ifvdck6" path="res://assets/enemies/cerdipulpo_1.png" id="5_t5q7b"]
[ext_resource type="Texture2D" uid="uid://cinexqxlsuwnj" path="res://assets/enemies/cerdipulpo_2.png" id="6_sl6ak"]
[ext_resource type="Texture2D" uid="uid://cy034lyy4w74p" path="res://assets/enemies/cerdipulpo_3.png" id="7_3t5qr"]

[sub_resource type="CircleShape2D" id="CircleShape2D_rs3ab"]
radius = 16.0

[sub_resource type="SpriteFrames" id="SpriteFrames_w150n"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_t5q7b")
}, {
"duration": 1.0,
"texture": ExtResource("6_sl6ak")
}, {
"duration": 1.0,
"texture": ExtResource("7_3t5qr")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="RangedEnemy" type="CharacterBody2D" unique_id=93153910 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
collision_layer = 2
collision_mask = 3
script = ExtResource("1_o614x")
attack_charge_time = 0.5
flee_range = 130.0
approach_range = 220.0
current_mask_data = ExtResource("2_2tr1s")
move_speed = 40.0
main_visual = NodePath("Anim")
death_scene = ExtResource("3_n20dk")

[node name="Shadow" type="Node2D" parent="." unique_id=1651361569]
position = Vector2(0, 16)
script = ExtResource("4_ul27a")
metadata/_custom_type_script = "uid://synocbtvgrf4"

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1882108293]
radius = 40.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1216246343]
shape = SubResource("CircleShape2D_rs3ab")

[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1041580697]
modulate = Color(0.94509804, 0.94509804, 0.94509804, 1)
sprite_frames = SubResource("SpriteFrames_w150n")
autoplay = "default"
frame_progress = 0.12960237
