Exploding barrels

This commit is contained in:
MaddoScientisto 2024-06-09 00:34:36 +02:00
commit 71eeb3f1d1
12 changed files with 132 additions and 20 deletions

View file

@ -8,7 +8,7 @@ radius = 2.23607
[node name="Bullet" type="Area2D" groups=["bullets"]]
collision_layer = 8
collision_mask = 21
collision_mask = 85
script = ExtResource("1_jvxw3")
Speed = 200.0
metadata/_edit_group_ = true
@ -24,5 +24,6 @@ editor_description = "Player Bullet"
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]