[gd_scene load_steps=4 format=3 uid="uid://csacin2gx2tum"]

[ext_resource type="Script" uid="uid://quxft75411y7" path="res://scenes/spaceShip/spaceShip.gd" id="1_a2e5l"]
[ext_resource type="PackedScene" uid="uid://cglnd1ekr5u6r" path="res://scenes/areas/hurtArea/hurtArea.tscn" id="2_b8guf"]
[ext_resource type="AudioStream" uid="uid://decf2fp3ve2v8" path="res://assets/sound/radiation.wav" id="3_6p3ob"]

[node name="Spaceship" type="CharacterBody2D" groups=["spaceShip"]]
collision_layer = 4
script = ExtResource("1_a2e5l")

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

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

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

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

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

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

[node name="radiationDamage" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_6p3ob")

[connection signal="area_entered" from="hurtArea" to="." method="_on_hurt_area_area_entered"]
[connection signal="timeout" from="invincibleTimer" to="." method="_on_invincible_timer_timeout"]
[connection signal="timeout" from="radiationDamageTimer" to="." method="_on_radiation_damge_timer_timeout"]
