[gd_scene load_steps=7 format=2]

[ext_resource path="res://sprites/enemie_1.png" type="Texture" id=1]
[ext_resource path="res://scripts/enemie_1.gd" type="Script" id=2]
[ext_resource path="res://audio/sounds/shot.wav" type="AudioStream" id=3]
[ext_resource path="res://animations/damage.tres" type="Animation" id=4]
[ext_resource path="res://audio/sounds/hit_2.wav" type="AudioStream" id=5]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4.5, 1 )

[node name="enemie_1" type="Area2D"]
monitorable = false
collision_mask = 0
script = ExtResource( 2 )

[node name="sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
offset = Vector2( 0.5, 0.5 )
flip_v = true

[node name="coll" type="CollisionShape2D" parent="."]
position = Vector2( 0.5, 0 )
shape = SubResource( 1 )

[node name="bullet_time" type="Timer" parent="."]
wait_time = 0.5
one_shot = true

[node name="life_time" type="Timer" parent="."]
wait_time = 16.0
one_shot = true

[node name="ready_time" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
autostart = true

[node name="bullet_pos" type="Position2D" parent="."]
position = Vector2( 0, 3 )

[node name="anim" type="AnimationPlayer" parent="."]
anims/damage = ExtResource( 4 )

[node name="hit" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )

[node name="shot" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
