[gd_scene load_steps=22 format=3 uid="uid://eknn66u8gt26"]

[ext_resource type="Script" uid="uid://cy22d14qd0f48" path="res://Assets/Scenes/DEVSCENES/IQEnemy.cs" id="1_p53ib"]
[ext_resource type="Texture2D" uid="uid://c0pno0ac25r7i" path="res://Assets/Sprites/knight.png" id="2_o0b1e"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_41iyt"]
size = Vector2(14, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_a1e3t"]
atlas = ExtResource("2_o0b1e")
region = Rect2(0, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_ef81u"]
atlas = ExtResource("2_o0b1e")
region = Rect2(32, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4c3ag"]
atlas = ExtResource("2_o0b1e")
region = Rect2(64, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_1uahc"]
atlas = ExtResource("2_o0b1e")
region = Rect2(96, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_e5qiv"]
atlas = ExtResource("2_o0b1e")
region = Rect2(128, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_3xcl8"]
atlas = ExtResource("2_o0b1e")
region = Rect2(160, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_55x3b"]
atlas = ExtResource("2_o0b1e")
region = Rect2(192, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_f81eh"]
atlas = ExtResource("2_o0b1e")
region = Rect2(224, 64, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_2ehdo"]
atlas = ExtResource("2_o0b1e")
region = Rect2(0, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4wgw3"]
atlas = ExtResource("2_o0b1e")
region = Rect2(32, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_7bxlo"]
atlas = ExtResource("2_o0b1e")
region = Rect2(64, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_kwup2"]
atlas = ExtResource("2_o0b1e")
region = Rect2(96, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_p5lub"]
atlas = ExtResource("2_o0b1e")
region = Rect2(128, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_v4h3h"]
atlas = ExtResource("2_o0b1e")
region = Rect2(160, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_fpk85"]
atlas = ExtResource("2_o0b1e")
region = Rect2(192, 96, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_hylxp"]
atlas = ExtResource("2_o0b1e")
region = Rect2(224, 96, 32, 32)

[sub_resource type="SpriteFrames" id="SpriteFrames_rqn21"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_a1e3t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ef81u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4c3ag")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1uahc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e5qiv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3xcl8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_55x3b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f81eh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2ehdo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4wgw3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7bxlo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kwup2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p5lub")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v4h3h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fpk85")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hylxp")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_bc7hl"]

[node name="IQEnemy" type="CharacterBody2D"]
collision_layer = 8
collision_mask = 3
script = ExtResource("1_p53ib")
metadata/IQ = 20
metadata/AbilityRegenerate = true
metadata/_edit_vertical_guides_ = [-36.0]

[node name="Hitbox" type="CollisionShape2D" parent="."]
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_41iyt")

[node name="VisualsAndHitboxes" type="Node2D" parent="."]

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="VisualsAndHitboxes"]
position = Vector2(9.536743e-07, -1.9999999)
scale = Vector2(0.99999994, 0.99999994)
sprite_frames = SubResource("SpriteFrames_rqn21")
autoplay = "default"
frame = 1
frame_progress = 0.9866207

[node name="GroundDetector" type="Area2D" parent="VisualsAndHitboxes"]
position = Vector2(1.1368684e-13, 11.000001)
scale = Vector2(0.099999994, 0.099999994)
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="VisualsAndHitboxes/GroundDetector"]
position = Vector2(0, 19.999992)
scale = Vector2(0.99999994, 0.99999994)
shape = SubResource("RectangleShape2D_bc7hl")

[node name="LedgeDetector" type="Area2D" parent="VisualsAndHitboxes"]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="VisualsAndHitboxes/LedgeDetector"]
position = Vector2(11, 13)
scale = Vector2(0.1, 0.1)
shape = SubResource("RectangleShape2D_bc7hl")

[node name="WallDetector" type="Area2D" parent="VisualsAndHitboxes"]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="VisualsAndHitboxes/WallDetector"]
position = Vector2(11, 9.536743e-07)
scale = Vector2(0.1, 0.1)
shape = SubResource("RectangleShape2D_bc7hl")
