[gd_scene load_steps=4 format=2]

[ext_resource path="res://scripts/bullet.gd" type="Script" id=1]
[ext_resource path="res://audio/sounds/rocket_launch.wav" type="AudioStream" id=2]

[sub_resource type="Animation" id=1]
resource_name = "flame"
length = 0.16
loop = true
step = 0.08
tracks/0/type = "value"
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.08 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}

[node name="rocket" type="Area2D"]
collision_layer = 5
collision_mask = 5
script = ExtResource( 1 )
type = "rocket"
damage = 10
dir = -1

[node name="body" type="Polygon2D" parent="."]
color = Color( 0.827451, 0.827451, 0.196078, 1 )
polygon = PoolVector2Array( 0, 0, 1, 0, 1, 2, 2, 2, 2, 3, -1, 3, -1, 2, 0, 2 )

[node name="coll" type="CollisionPolygon2D" parent="."]
position = Vector2( 0.5, 2 )
polygon = PoolVector2Array( -0.5, -2, 0.5, -2, 0.5, 0, 1.5, 0, 1.5, 1, -1.5, 1, -1.5, 0, -0.5, 0 )

[node name="audio" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
autoplay = true

[node name="flame" type="Polygon2D" parent="."]
polygon = PoolVector2Array( 0, 3, 1, 3, 1, 6, 0, 6 )

[node name="anim" type="AnimationPlayer" parent="flame"]
autoplay = "flame"
anims/flame = SubResource( 1 )

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