31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://domeukw4ucmyr"]
|
|
|
|
[ext_resource type="Script" uid="uid://dxlwvwy3hj56x" path="res://scripts/components/LinearProjectile.cs" id="1_fkydi"]
|
|
[ext_resource type="Resource" uid="uid://7uj0oe656jfx" path="res://resources/effects/SnowSlow.tres" id="2_fn62x"]
|
|
[ext_resource type="Texture2D" uid="uid://dn4l67snkx5mr" path="res://assets/sprites/plants/snowpea_projectile.tres" id="2_xt8td"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ix1sk"]
|
|
radius = 6.0
|
|
|
|
[node name="Snowpea" type="Area2D"]
|
|
collision_layer = 4
|
|
collision_mask = 8
|
|
script = ExtResource("1_fkydi")
|
|
_speed = 3.0
|
|
_damage = 10
|
|
_impactEffect = ExtResource("2_fn62x")
|
|
_damageType = 1
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_xt8td")
|
|
|
|
[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"]
|