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

[ext_resource type="Script" uid="uid://b1t0k6dfubsmk" path="res://scripts/enemy.gd" id="1_fr7lv"]
[ext_resource type="Resource" uid="uid://cf7x0uuj6wnil" path="res://resources/scythe.tres" id="2_j1ss0"]
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="2_vv3x1"]
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_esqeu"]
[ext_resource type="Texture2D" uid="uid://d1jtklq43eomd" path="res://assets/enemies/blue-1.png" id="5_esqeu"]
[ext_resource type="Texture2D" uid="uid://36h16s60o2pm" path="res://assets/enemies/blue-2.png" id="6_yt5vg"]
[ext_resource type="Texture2D" uid="uid://24wii8yqwtw5" path="res://assets/enemies/blue-3.png" id="7_7t5mr"]
[ext_resource type="Texture2D" uid="uid://daqkggmbdqj7b" path="res://assets/enemies/blue-4.png" id="8_y8vm1"]

[sub_resource type="CircleShape2D" id="CircleShape2D_sw0xa"]
radius = 15.0

[sub_resource type="SpriteFrames" id="SpriteFrames_lxe82"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_esqeu")
}, {
"duration": 1.0,
"texture": ExtResource("6_yt5vg")
}, {
"duration": 1.0,
"texture": ExtResource("7_7t5mr")
}, {
"duration": 1.0,
"texture": ExtResource("8_y8vm1")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="EnemyBase" type="CharacterBody2D" unique_id=105822266 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
collision_layer = 2
collision_mask = 3
motion_mode = 1
script = ExtResource("1_fr7lv")
attack_charge_time = 0.1
flee_range = 0.0
approach_range = 60.0
current_mask_data = ExtResource("2_j1ss0")
move_speed = 60.0
main_visual = NodePath("Anim")
death_scene = ExtResource("3_esqeu")

[node name="Shadow" type="Node2D" parent="." unique_id=1662034478]
position = Vector2(0, 15)
script = ExtResource("2_vv3x1")
metadata/_custom_type_script = "uid://synocbtvgrf4"

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1367309587]
rotation = 2.4698958e-05
shape = SubResource("CircleShape2D_sw0xa")

[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1536371166]
sprite_frames = SubResource("SpriteFrames_lxe82")
autoplay = "default"
frame_progress = 0.98627317
