Files
SWGalaga/Scenes/y_wing_main_cannon_laser.tscn

31 lines
1001 B
Plaintext
Raw Normal View History

[gd_scene load_steps=5 format=3 uid="uid://bclbidx5k15o7"]
[ext_resource type="Script" path="res://Scripts/y_wing_main_cannon_laser.gd" id="1_2yenk"]
[ext_resource type="Texture2D" uid="uid://qmnr2uqcocyi" path="res://Assets/y-wing_main_laser.png" id="1_jmsrt"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_iw7a3"]
radius = 3.0
height = 80.0
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_mtiwm"]
radius = 3.0
height = 80.0
[node name="y-wing-main-cannon" type="Area2D"]
collision_layer = 16
collision_mask = 3
script = ExtResource("1_2yenk")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_jmsrt")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-8, 4)
shape = SubResource("CapsuleShape2D_iw7a3")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
position = Vector2(7, 4)
shape = SubResource("CapsuleShape2D_mtiwm")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]