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

[ext_resource type="Script" uid="uid://b1t0k6dfubsmk" path="res://scripts/enemy.gd" id="1_jipp7"]
[ext_resource type="Resource" uid="uid://butr81mog5qjy" path="res://resources/purple_attack.tres" id="2_jipp7"]
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_613ir"]
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_ucc0c"]
[ext_resource type="Texture2D" uid="uid://df5v6y1jiuc1x" path="res://assets/enemies/purple-1.png" id="5_jipp7"]
[ext_resource type="Texture2D" uid="uid://bf15pguyrjko1" path="res://assets/enemies/purple-2.png" id="6_31l81"]
[ext_resource type="Texture2D" uid="uid://suept1htkfcl" path="res://assets/enemies/purple-3.png" id="7_613ir"]
[ext_resource type="Texture2D" uid="uid://dv0lgyyfy6lva" path="res://assets/enemies/purple-4.png" id="8_ucc0c"]

[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_jipp7")
}, {
"duration": 1.0,
"texture": ExtResource("6_31l81")
}, {
"duration": 1.0,
"texture": ExtResource("7_613ir")
}, {
"duration": 1.0,
"texture": ExtResource("8_ucc0c")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

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

[node name="Shadow" type="Node2D" parent="." unique_id=1662034478]
position = Vector2(0, 15)
script = ExtResource("4_ucc0c")
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
