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

[ext_resource type="Script" uid="uid://cp3be4swhhwep" path="res://scripts/enemy_humanoid.gd" id="1"]
[ext_resource type="Script" uid="uid://cpxabh3uq1kl4" path="res://scripts/create_shadow_sprite.gd" id="2"]
[ext_resource type="Texture2D" uid="uid://bkninujaqqvb1" path="res://assets/gfx/Puny-Characters/Layer 0 - Skins/Human1_1.png" id="3"]
[ext_resource type="Texture2D" uid="uid://bloqx3mibftjn" path="res://assets/gfx/Puny-Characters/WeaponOverlayer.png" id="4"]
[ext_resource type="Texture2D" uid="uid://cwklipebg6eyp" path="res://assets/gfx/enemies/_utropstecken.png" id="5"]
[ext_resource type="Texture2D" uid="uid://c4jkxpv3objot" path="res://assets/gfx/enemies/_questionmark.png" id="6"]
[ext_resource type="AudioStream" uid="uid://dtydo3gymnrcv" path="res://assets/audio/sfx/enemies/goblin/die1.mp3" id="7_fikv0"]
[ext_resource type="AudioStream" uid="uid://c3fqe3i3qbl8x" path="res://assets/audio/sfx/enemies/goblin/die2.mp3" id="8_d7cbf"]
[ext_resource type="AudioStream" uid="uid://dlgavklpnx0rs" path="res://assets/audio/sfx/enemies/goblin/raargh.mp3" id="9_68ox0"]
[ext_resource type="AudioStream" uid="uid://cvh7dfc4hshsb" path="res://assets/audio/sfx/enemies/goblin/raargh2.mp3" id="10_r7ul0"]
[ext_resource type="AudioStream" uid="uid://cbvxokqp1bxar" path="res://assets/audio/sfx/enemies/goblin/raargh3.mp3" id="11_5x2ph"]
[ext_resource type="AudioStream" uid="uid://dscx61fdkejlt" path="res://assets/audio/sfx/enemies/goblin/ive_been_waiting_for_this.mp3" id="12_oynfq"]
[ext_resource type="AudioStream" uid="uid://ban8uv8hifsgc" path="res://assets/audio/sfx/enemies/goblin/stay_back_if_you_wanna_keep_your_head.mp3" id="13_b0veo"]

[sub_resource type="Gradient" id="Gradient_1"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_1"]
gradient = SubResource("Gradient_1")
width = 14
height = 8
fill = 1
fill_from = Vector2(0.51304346, 0.46086955)
fill_to = Vector2(0, 0)

[sub_resource type="CircleShape2D" id="CircleShape2D_1"]
radius = 5.0

[sub_resource type="CircleShape2D" id="CircleShape2D_2"]
radius = 150.0

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_fikv0"]
playback_mode = 1
random_pitch = 1.0059091
streams_count = 2
stream_0/stream = ExtResource("7_fikv0")
stream_1/stream = ExtResource("8_d7cbf")

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_37mja"]
playback_mode = 1
random_pitch = 1.0059091
streams_count = 5
stream_0/stream = ExtResource("9_68ox0")
stream_1/stream = ExtResource("10_r7ul0")
stream_2/stream = ExtResource("11_5x2ph")
stream_3/stream = ExtResource("12_oynfq")
stream_4/stream = ExtResource("13_b0veo")

[node name="EnemyHumanoid" type="CharacterBody2D" unique_id=285357386]
collision_layer = 2
collision_mask = 65
motion_mode = 1
script = ExtResource("1")

[node name="Shadow" type="Sprite2D" parent="." unique_id=468462304]
z_index = -1
position = Vector2(0, 7)
texture = SubResource("GradientTexture2D_1")
script = ExtResource("2")

[node name="Sprite2DBody" type="Sprite2D" parent="." unique_id=855871821]
y_sort_enabled = true
texture = ExtResource("3")
hframes = 35
vframes = 8

[node name="Sprite2DBoots" type="Sprite2D" parent="." unique_id=460958943]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DArmour" type="Sprite2D" parent="." unique_id=6790482]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DFacialHair" type="Sprite2D" parent="." unique_id=31110906]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DHair" type="Sprite2D" parent="." unique_id=425592986]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DEyes" type="Sprite2D" parent="." unique_id=496437887]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DEyeLashes" type="Sprite2D" parent="." unique_id=1799398723]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DAddons" type="Sprite2D" parent="." unique_id=1702763725]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DHeadgear" type="Sprite2D" parent="." unique_id=164186416]
y_sort_enabled = true
hframes = 35
vframes = 8

[node name="Sprite2DWeapon" type="Sprite2D" parent="." unique_id=1718282928]
y_sort_enabled = true
texture = ExtResource("4")
hframes = 35
vframes = 8

[node name="AlertIndicator" type="Sprite2D" parent="." unique_id=1697001148]
visible = false
z_index = 100
position = Vector2(0, -20)
texture = ExtResource("5")
hframes = 3

[node name="QuestionIndicator" type="Sprite2D" parent="." unique_id=144158765]
visible = false
z_index = 100
position = Vector2(0, -20)
texture = ExtResource("6")
hframes = 3

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=189217716]
position = Vector2(0, 4)
shape = SubResource("CircleShape2D_1")

[node name="AttackArea" type="Area2D" parent="." unique_id=1923132385]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackArea" unique_id=1597070641]
position = Vector2(0, 4)
shape = SubResource("CircleShape2D_1")

[node name="AggroArea" type="Area2D" parent="." unique_id=1234567890]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="AggroArea" unique_id=1286608618]
shape = SubResource("CircleShape2D_2")

[node name="SfxDie" type="AudioStreamPlayer2D" parent="." unique_id=693933783]
stream = SubResource("AudioStreamRandomizer_fikv0")
max_distance = 930.0
attenuation = 8.282114
max_polyphony = 4
panning_strength = 1.3
bus = &"Sfx"

[node name="SfxAlertFoundPlayer" type="AudioStreamPlayer2D" parent="." unique_id=815591859]
stream = SubResource("AudioStreamRandomizer_37mja")
max_distance = 1146.0
attenuation = 8.57418
max_polyphony = 4
panning_strength = 1.04
bus = &"Sfx"
