2024-06-05 06:59:39 -04:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://wqrybvg1tf4s"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ciu3cl3y7luqp" path="res://Assets/y-wing-turret_laser.png" id="1_8xaek"]
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/turret_laser.gd" id="1_17xg5"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_kjs2o"]
|
|
|
|
|
radius = 3.0
|
|
|
|
|
height = 64.0
|
|
|
|
|
|
|
|
|
|
[node name="turret_laser" type="Area2D"]
|
|
|
|
|
collision_layer = 16
|
|
|
|
|
collision_mask = 3
|
|
|
|
|
script = ExtResource("1_17xg5")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
|
texture_filter = 1
|
|
|
|
|
texture = ExtResource("1_8xaek")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
position = Vector2(0, 2)
|
|
|
|
|
shape = SubResource("CapsuleShape2D_kjs2o")
|
2024-06-05 17:37:46 -04:00
|
|
|
|
2024-06-07 03:35:23 -04:00
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
|
wait_time = 10.0
|
|
|
|
|
autostart = true
|
|
|
|
|
|
2024-06-05 17:37:46 -04:00
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
2024-06-07 03:35:23 -04:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|