[gd_scene load_steps=5 format=3 uid="uid://b2hrv0aqbui7u"]

[ext_resource type="Script" uid="uid://dxlwvwy3hj56x" path="res://scripts/LinearProjectile.cs" id="1_3kc4s"]
[ext_resource type="Texture2D" uid="uid://dq0mul65hevtt" path="res://assets/sprites/plants/pea.tres" id="2_26q5x"]
[ext_resource type="PackedScene" uid="uid://1d33w4ubtury" path="res://scenes/particles/pea_particles.tscn" id="2_osqrk"]

[sub_resource type="CircleShape2D" id="CircleShape2D_ix1sk"]
radius = 6.0

[node name="Pea" type="Area2D"]
collision_layer = 4
collision_mask = 8
script = ExtResource("1_3kc4s")
_speed = 3.0
_damage = 10
particles = ExtResource("2_osqrk")

[node name="Sprite" type="Sprite2D" parent="."]
texture = ExtResource("2_26q5x")

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

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

[connection signal="area_entered" from="." to="." method="OnAreaEntered"]
[connection signal="timeout" from="Timer" to="." method="queue_free"]
