[gd_scene load_steps=10 format=2]

[ext_resource path="res://main.gd" type="Script" id=2]
[ext_resource path="res://Smoke.gd" type="Script" id=3]
[ext_resource path="res://line.png" type="Texture" id=4]
[ext_resource path="res://tip.png" type="Texture" id=5]
[ext_resource path="res://holder.png" type="Texture" id=6]
[ext_resource path="res://stick.png" type="Texture" id=7]

[sub_resource type="Curve" id=1]
_data = [ Vector2( 0, 0 ), 0.0, 2.38095, 0, 0, Vector2( 0.71, 0.989796 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.612245 ), -3.43716, 0.0, 0, 0 ]

[sub_resource type="Animation" id=2]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Smoke:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0.784314, 0.784314, 0.784314, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Holder/TextureRect:rect_size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 38.459, 19 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Holder/TextureRect/TextureRect:rect_scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Smoke:position")
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": 0,
"values": [ Vector2( 317, 830 ) ]
}

[sub_resource type="Animation" id=3]
resource_name = "burn"
length = 600.0
tracks/0/type = "value"
tracks/0/path = NodePath("Smoke:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 600 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 317, 830 ), Vector2( 122, 1028 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Smoke:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 29.4, 540.8, 600 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 0.752941, 0.752941, 0.752941, 1 ), Color( 0.752941, 0.752941, 0.752941, 1 ), Color( 1, 1, 1, 0 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Holder/TextureRect:rect_size")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 600 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 459, 19 ), Vector2( 38.459, 19 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Holder/TextureRect/TextureRect:rect_scale")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0, 600 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ), Vector2( 0.713, 0.716 ) ]
}

[node name="Node2D" type="Node2D"]
script = ExtResource( 2 )

[node name="Smoke" type="Node2D" parent="."]
modulate = Color( 0.784314, 0.784314, 0.784314, 1 )
self_modulate = Color( 0.772549, 0.772549, 0.772549, 1 )
position = Vector2( 317, 830 )
script = ExtResource( 3 )
gravity = 200
wind = 0.25
turbulence_force = 200
damping_force = 4
time_speed = 25

[node name="Smoke2" type="Node2D" parent="Smoke"]
script = ExtResource( 3 )
gravity = 200
wind = 0.25
turbulence_force = 200
damping_force = 4
spawn_pos = Vector2( -22, 18 )
time_speed = 25

[node name="SmokeLine" type="Line2D" parent="Smoke/Smoke2"]
points = PoolVector2Array( 177, -8, 120, 184, 391, 477, 323, 56, 253, 39, -259, -89 )
width = 20.0
width_curve = SubResource( 1 )
default_color = Color( 1, 1, 1, 0.760784 )
texture = ExtResource( 4 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2

[node name="Smoke3" type="Node2D" parent="Smoke"]
script = ExtResource( 3 )
gravity = 200
wind = 0.25
turbulence_force = 400
damping_force = 4
spawn_pos = Vector2( 35, 0 )
time_speed = 25

[node name="SmokeLine" type="Line2D" parent="Smoke/Smoke3"]
position = Vector2( -1, 0 )
points = PoolVector2Array( 177, -8, 120, 184, 391, 477, 323, 56, 253, 39, -259, -89 )
width_curve = SubResource( 1 )
default_color = Color( 1, 1, 1, 0.333333 )
texture = ExtResource( 4 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2

[node name="Smoke4" type="Node2D" parent="Smoke"]
script = ExtResource( 3 )
gravity = 200
wind = 0.25
turbulence_force = 400
damping_force = 4
spawn_pos = Vector2( 35, 0 )
time_speed = 25

[node name="SmokeLine" type="Line2D" parent="Smoke/Smoke4"]
position = Vector2( -1, 0 )
points = PoolVector2Array( 177, -8, 120, 184, 391, 477, 323, 56, 253, 39, -259, -89 )
width_curve = SubResource( 1 )
default_color = Color( 1, 1, 1, 0.333333 )
texture = ExtResource( 4 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2

[node name="Smoke5" type="Node2D" parent="Smoke"]
script = ExtResource( 3 )
gravity = 200
wind = 0.25
turbulence_force = 400
damping_force = 4
spawn_pos = Vector2( 35, 0 )
time_speed = 25

[node name="SmokeLine" type="Line2D" parent="Smoke/Smoke5"]
position = Vector2( -1, 0 )
points = PoolVector2Array( 177, -8, 120, 184, 391, 477, 323, 56, 253, 39, -259, -89 )
width_curve = SubResource( 1 )
default_color = Color( 1, 1, 1, 0.333333 )
texture = ExtResource( 4 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2

[node name="SmokeLine" type="Line2D" parent="Smoke"]
points = PoolVector2Array( 177, -8, 120, 184, 391, 477, 323, 56, 253, 39, -259, -89 )
width = 20.0
width_curve = SubResource( 1 )
default_color = Color( 1, 1, 1, 0.760784 )
texture = ExtResource( 4 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2

[node name="Polygon2D" type="Polygon2D" parent="Smoke"]
color = Color( 1, 1, 1, 0.490196 )

[node name="spawn_more" type="Timer" parent="Smoke"]
process_mode = 0
wait_time = 0.1
autostart = true

[node name="Holder" type="Sprite" parent="."]
position = Vector2( 208, 1036 )
scale = Vector2( 0.642943, 0.642943 )
texture = ExtResource( 6 )

[node name="TextureRect" type="TextureRect" parent="Holder"]
margin_left = -167.977
margin_top = 13.9982
margin_right = -129.518
margin_bottom = 32.9982
rect_rotation = -46.092
texture = ExtResource( 7 )
expand = true
stretch_mode = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="TextureRect" type="TextureRect" parent="Holder/TextureRect"]
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = -22.0
margin_top = -9.5
margin_right = 21.0
margin_bottom = 30.5
texture = ExtResource( 5 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/RESET = SubResource( 2 )
anims/burn = SubResource( 3 )

[node name="Label" type="Label" parent="."]
margin_left = 6.0
margin_top = 984.0
margin_right = 145.0
margin_bottom = 1015.0
text = "image by petr sidorov
vignette by ash k"
__meta__ = {
"_edit_use_anchors_": false
}

[connection signal="timeout" from="Smoke/spawn_more" to="Smoke" method="_on_spawn_more_timeout"]
[connection signal="timeout" from="Smoke/spawn_more" to="Smoke/Smoke2" method="_on_spawn_more_timeout"]
[connection signal="timeout" from="Smoke/spawn_more" to="Smoke/Smoke3" method="_on_spawn_more_timeout"]
[connection signal="timeout" from="Smoke/spawn_more" to="Smoke/Smoke4" method="_on_spawn_more_timeout"]
[connection signal="timeout" from="Smoke/spawn_more" to="Smoke/Smoke5" method="_on_spawn_more_timeout"]
