2024-05-09 22:42:55 -04:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://btqqwoybwtc0a"]
|
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dkig6mppjmlx0" path="res://assets/img/bullet.png" id="1_6rsjj"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_jyq7a"]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5nukh"]
|
2024-05-12 00:07:06 -04:00
|
|
|
size = Vector2(4, 16)
|
2024-05-09 22:42:55 -04:00
|
|
|
|
2024-05-12 18:54:18 -04:00
|
|
|
[node name="Bullet" type="Area2D" groups=["bullet"]]
|
2024-05-12 00:07:06 -04:00
|
|
|
position = Vector2(0, -8)
|
2024-05-10 20:42:22 -04:00
|
|
|
collision_mask = 2
|
2024-05-09 22:42:55 -04:00
|
|
|
script = ExtResource("1_jyq7a")
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
position = Vector2(1, 0)
|
|
|
|
texture = ExtResource("1_6rsjj")
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("RectangleShape2D_5nukh")
|
|
|
|
|
|
|
|
[node name="LifeTimer" type="Timer" parent="."]
|
2024-05-12 00:07:06 -04:00
|
|
|
wait_time = 0.5
|
2024-05-09 22:42:55 -04:00
|
|
|
one_shot = true
|
|
|
|
autostart = true
|
|
|
|
|
2024-05-12 22:39:28 -04:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
2024-05-09 22:42:55 -04:00
|
|
|
[connection signal="timeout" from="LifeTimer" to="." method="_on_life_timer_timeout"]
|