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

[ext_resource type="Script" uid="uid://c0wywibyp77c" path="res://scripts/enemy_bat.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://bipt58n2ggxu5" path="res://assets/gfx/enemies/Bat.png" id="2"]
[ext_resource type="AudioStream" uid="uid://dcn14oarhvvlk" path="res://assets/audio/sfx/enemies/bat/bat_flap1.mp3" id="3_xbmos"]
[ext_resource type="AudioStream" uid="uid://chm1mvjrrj3vj" path="res://assets/audio/sfx/enemies/bat/bat_flap2.mp3" id="4_veom1"]
[ext_resource type="AudioStream" uid="uid://bessb1ga6hwy4" path="res://assets/audio/sfx/enemies/bat/bat_chirp.mp3" id="5_yoqnl"]

[sub_resource type="CircleShape2D" id="CircleShape2D_bat"]
radius = 6.0

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_o7h1p"]
playback_mode = 1
random_pitch = 1.0178324
streams_count = 2
stream_0/stream = ExtResource("3_xbmos")
stream_1/stream = ExtResource("4_veom1")

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_6m63e"]
random_pitch = 1.0118532
streams_count = 1
stream_0/stream = ExtResource("5_yoqnl")

[node name="EnemyBat" type="CharacterBody2D" unique_id=909833829]
collision_layer = 2
script = ExtResource("1")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1235333211]
y_sort_enabled = true
texture = ExtResource("2")
hframes = 3
vframes = 4
frame = 2

[node name="Shadow" type="Sprite2D" parent="." unique_id=646224983]
modulate = Color(0, 0, 0, 0.5)
z_index = -1
y_sort_enabled = true
scale = Vector2(0.8, 0.4)
texture = ExtResource("2")
hframes = 3
vframes = 4
frame = 2

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=897277405]
shape = SubResource("CircleShape2D_bat")

[node name="BatFlapSfx" type="AudioStreamPlayer2D" parent="." unique_id=2095836633]
stream = SubResource("AudioStreamRandomizer_o7h1p")
max_distance = 1160.0
attenuation = 7.999991
panning_strength = 1.09

[node name="BatChirpSfx" type="AudioStreamPlayer2D" parent="." unique_id=288445950]
stream = SubResource("AudioStreamRandomizer_6m63e")
max_distance = 1107.0
attenuation = 9.18958
panning_strength = 1.05
