2024-02-27 17:16:55 +01:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://b1qnfiuokpvsr"]
|
2024-02-26 23:45:20 +01:00
|
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cybpmpb0d8yva" path="res://Sprites/Projectile.png" id="1_2eu87"]
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_jvxw3"]
|
2024-02-26 23:45:20 +01:00
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"]
|
|
|
|
|
radius = 2.23607
|
|
|
|
|
|
2024-05-02 12:50:08 +02:00
|
|
|
[node name="Bullet" type="Area2D" groups=["bullets"]]
|
2024-05-25 21:41:58 +02:00
|
|
|
collision_layer = 8
|
2024-06-09 00:34:36 +02:00
|
|
|
collision_mask = 85
|
2024-02-27 17:16:55 +01:00
|
|
|
script = ExtResource("1_jvxw3")
|
2024-05-01 11:48:04 +02:00
|
|
|
Speed = 200.0
|
2024-02-27 17:16:55 +01:00
|
|
|
metadata/_edit_group_ = true
|
2024-02-26 23:45:20 +01:00
|
|
|
|
2024-02-27 17:16:55 +01:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2024-02-26 23:45:20 +01:00
|
|
|
texture = ExtResource("1_2eu87")
|
|
|
|
|
|
2024-02-27 17:16:55 +01:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-02-26 23:45:20 +01:00
|
|
|
shape = SubResource("CircleShape2D_jxptd")
|
2024-02-27 17:16:55 +01:00
|
|
|
|
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
|
|
|
editor_description = "Player Bullet"
|
2024-02-27 22:54:42 +01:00
|
|
|
|
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
|
|
|
|
2024-06-09 00:34:36 +02:00
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
2024-05-26 11:40:35 +02:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
2024-02-27 22:54:42 +01:00
|
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|