[gd_scene load_steps=10 format=2]

[ext_resource path="res://sprites/objects/flask/FlaskSpin.png" type="Texture" id=1]
[ext_resource path="res://objects/objects/flask/Flask.gd" type="Script" id=2]

[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 16, 14 )

[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 16, 14 )

[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 32, 0, 16, 14 )

[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 48, 0, 16, 14 )

[sub_resource type="SpriteFrames" id=5]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
"loop": true,
"name": "default",
"speed": 8.0
} ]

[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 4, 4 )

[sub_resource type="RectangleShape2D" id=7]

[node name="Flask" type="Area2D" groups=[
"flask",
]]
script = ExtResource( 2 )

[node name="Sprite" type="AnimatedSprite" parent="."]
position = Vector2( 0, -1 )
frames = SubResource( 5 )
frame = 1
playing = true

[node name="Life" type="Timer" parent="."]
wait_time = 10.0
one_shot = true
autostart = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 6 )

[node name="Reflect" type="Area2D" parent="."]

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Reflect"]
shape = SubResource( 7 )

[node name="SpawnTimer" type="Timer" parent="."]
wait_time = 0.15
one_shot = true
autostart = true
[connection signal="area_entered" from="." to="." method="_on_Flask_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_Flask_body_entered"]
[connection signal="timeout" from="Life" to="Sprite" method="_on_Life_timeout"]
[connection signal="body_entered" from="Reflect" to="." method="_on_Reflect_body_entered"]
[connection signal="timeout" from="SpawnTimer" to="." method="_on_SpawnTimer_timeout"]
