Files

26 lines
1.0 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://ybkqaynvpcjm"]
[ext_resource type="Script" uid="uid://ctmjb3nkxrepu" path="res://game/entities/weapons/abstract_projectile.gd" id="1_4b2nh"]
[sub_resource type="CircleShape2D" id="CircleShape2D_4b2nh"]
radius = 1.0
[node name="AbstrastProjectile" type="Area2D" groups=["projectiles"]]
z_index = 1
script = ExtResource("1_4b2nh")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_4b2nh")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="OutOfScreenTimer" type="Timer" parent="."]
process_callback = 0
wait_time = 0.1
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_entered" from="VisibleOnScreenNotifier2D" to="." method="_on_screen_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_screen_exited"]
[connection signal="timeout" from="OutOfScreenTimer" to="." method="_on_out_of_screen_timer_timeout"]