[gd_scene load_steps=5 format=3 uid="uid://cgqo1nxq6xprm"]

[ext_resource type="PackedScene" uid="uid://eqo7k2ronf8k" path="res://scenes/areas/damageArea/damageArea.tscn" id="1_1ys07"]
[ext_resource type="Script" uid="uid://iu7hvfpevs65" path="res://scenes/obstacle/obstacle.gd" id="1_osovj"]
[ext_resource type="PackedScene" uid="uid://cglnd1ekr5u6r" path="res://scenes/areas/hurtArea/hurtArea.tscn" id="2_osovj"]
[ext_resource type="AudioStream" uid="uid://vjxm7ay4t2ju" path="res://assets/sound/hit2.wav" id="4_ckc2h"]

[node name="Obstacle" type="CharacterBody2D" groups=["obstacle"]]
collision_layer = 2
collision_mask = 46
script = ExtResource("1_osovj")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]

[node name="DamageArea" parent="." instance=ExtResource("1_1ys07")]

[node name="hurtArea" parent="." instance=ExtResource("2_osovj")]

[node name="Sprite2D" type="Sprite2D" parent="."]

[node name="lifeTimeTimer" type="Timer" parent="."]
one_shot = true

[node name="hit" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_ckc2h")

[connection signal="area_entered" from="DamageArea" to="." method="_on_damage_area_area_entered"]
[connection signal="hurt" from="hurtArea" to="." method="_on_hurt_area_hurt"]
[connection signal="timeout" from="lifeTimeTimer" to="." method="_on_life_time_timer_timeout"]

[editable path="DamageArea"]
[editable path="hurtArea"]
