40 lines
1.4 KiB
Text
40 lines
1.4 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://b2hrv0aqbui7u"]
|
|
|
|
[ext_resource type="Script" uid="uid://dxlwvwy3hj56x" path="res://scripts/projectiles/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="Script" uid="uid://bb6lv1djnqjaw" path="res://scripts/systems/effects/RandomRedirectEffect.cs" id="2_fwj1o"]
|
|
[ext_resource type="PackedScene" uid="uid://1d33w4ubtury" path="res://scenes/particles/pea_particles.tscn" id="2_osqrk"]
|
|
|
|
[sub_resource type="Resource" id="Resource_22ej5"]
|
|
script = ExtResource("2_fwj1o")
|
|
tilesWalked = 0.2
|
|
travelTime = 0.2
|
|
Duration = 0.3
|
|
Slot = "testra"
|
|
metadata/_custom_type_script = "uid://bb6lv1djnqjaw"
|
|
|
|
[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
|
|
_impactEffect = SubResource("Resource_22ej5")
|
|
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"]
|