[gd_scene load_steps=6 format=2]

[ext_resource path="res://sprites/support.png" type="Texture" id=1]
[ext_resource path="res://scripts/support.gd" type="Script" id=2]
[ext_resource path="res://animations/damage.tres" type="Animation" id=3]

[sub_resource type="Animation" id=1]
resource_name = "activate"
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("sprite:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ Vector2( 0, 20 ), Vector2( 0, 19 ), Vector2( 0, 18 ), Vector2( 0, 17 ), Vector2( 0, 16 ), Vector2( 0, 15 ), Vector2( 0, 14 ), Vector2( 0, 13 ), Vector2( 0, 12 ), Vector2( 0, 11 ), Vector2( 0, 10 ), Vector2( 0, 9 ), Vector2( 0, 8 ), Vector2( 0, 7 ), Vector2( 0, 6 ), Vector2( 0, 5 ), Vector2( 0, 4 ), Vector2( 0, 3 ), Vector2( 0, 2 ), Vector2( 0, 1 ), Vector2( 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("sprite:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("coll:disabled")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0.95, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("sprite:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}

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

[node name="support" type="Area2D"]
collision_layer = 2
collision_mask = 5
script = ExtResource( 2 )

[node name="sprite" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0 )
position = Vector2( 0, 20 )
texture = ExtResource( 1 )
offset = Vector2( 0.5, 0.5 )

[node name="anim" type="AnimationPlayer" parent="."]
anims/activate = SubResource( 1 )
anims/damage = ExtResource( 3 )

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

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

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