[gd_scene load_steps=8 format=2]

[ext_resource path="res://assets/contraption/ShieldVendingMachine.png" type="Texture" id=1]
[ext_resource path="res://src/Contraptions/VendingMachine.gd" type="Script" id=2]
[ext_resource path="res://assets/ui/sci-fi-godot-theme/sci-fi-pixel.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/sounds/gotShields.wav" type="AudioStream" id=4]

[sub_resource type="Gradient" id=21]
interpolation_mode = 2
colors = PoolColorArray( 1, 1, 1, 0.752941, 0, 0, 0, 0 )

[sub_resource type="GradientTexture2D" id=22]
gradient = SubResource( 21 )
width = 60
height = 60
fill = 1
fill_from = Vector2( 0.5, 0.5 )
fill_to = Vector2( 0.155994, 0.791965 )

[sub_resource type="CircleShape2D" id=1]
radius = 18.0

[node name="VendingMachine" type="Node2D"]
z_index = -1
script = ExtResource( 2 )

[node name="Highlight" type="TextureRect" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -30.0
margin_top = -31.0
margin_right = 30.0
margin_bottom = 29.0
texture = SubResource( 22 )

[node name="Label" type="Label" parent="."]
visible = false
margin_left = -18.0
margin_top = -24.0
margin_right = 48.0
margin_bottom = -10.0
rect_scale = Vector2( 0.590909, 0.627907 )
custom_fonts/font = ExtResource( 3 )
text = "[purchase]"

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )

[node name="ActivatorArea" type="Area2D" parent="."]
unique_name_in_owner = true
position = Vector2( 0, -6 )
collision_layer = 24
monitorable = false

[node name="ActivatorAreaShape" type="CollisionShape2D" parent="ActivatorArea"]
unique_name_in_owner = true
position = Vector2( 0, 3 )
shape = SubResource( 1 )

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

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
volume_db = -14.0
bus = "Effects"

[connection signal="area_entered" from="ActivatorArea" to="." method="_on_ActivatorArea_area_entered"]
[connection signal="area_exited" from="ActivatorArea" to="." method="_on_ActivatorArea_area_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
