[gd_scene load_steps=11 format=2]

[ext_resource path="res://src/AI/EnemyCharger.gd" type="Script" id=1]
[ext_resource path="res://src/Main/StateMachine/StateMachine.gd" type="Script" id=2]
[ext_resource path="res://src/AI/States/SearchRadius.gd" type="Script" id=3]
[ext_resource path="res://src/AI/States/Charge.gd" type="Script" id=4]
[ext_resource path="res://src/AI/States/Cooldown.gd" type="Script" id=5]
[ext_resource path="res://src/AI/Steering/BehaviorController2D.gd" type="Script" id=6]
[ext_resource path="res://src/AI/Steering/Behaviors/Individual/StraightLineBehavior2D.gd" type="Script" id=7]
[ext_resource path="res://src/Player/Rectangle.gd" type="Script" id=8]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 30, 30 )

[sub_resource type="CircleShape2D" id=2]
radius = 300.0

[node name="EnemyCharger" type="KinematicBody2D"]
collision_layer = 0
collision_mask = 2
script = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

[node name="TargetDetector" type="Area2D" parent="."]
input_pickable = false
monitorable = false
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="TargetDetector"]
shape = SubResource( 2 )

[node name="StateMachine" type="Node" parent="."]
script = ExtResource( 2 )
initial_state = NodePath("Search")

[node name="Search" type="Node" parent="StateMachine"]
script = ExtResource( 3 )

[node name="Charge" type="Node" parent="StateMachine"]
script = ExtResource( 4 )
behavior = NodePath("../../BehaviorController2D/StraightLineBehavior2D")

[node name="Timer" type="Timer" parent="StateMachine/Charge"]

[node name="Cooldown" type="Node" parent="StateMachine"]
script = ExtResource( 5 )

[node name="BehaviorController2D" type="Node" parent="."]
script = ExtResource( 6 )
actor_path = NodePath("..")
max_acceleration = 600.0

[node name="StraightLineBehavior2D" type="Node" parent="BehaviorController2D"]
script = ExtResource( 7 )

[node name="Body" type="Node2D" parent="."]
script = ExtResource( 8 )
size = Vector2( 54, 54 )
outline = Vector2( 6, 6 )
color_fill = Color( 0.890625, 0.583793, 0.149597, 1 )
color_outline = Color( 0.901961, 0.172549, 0.137255, 1 )
