27 lines
815 B
Text
27 lines
815 B
Text
[gd_scene load_steps=3 format=3 uid="uid://djmoij5kuou3j"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/objects/projectile.gd" id="1_6nacn"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mo2if"]
|
|
size = Vector2(4, 32)
|
|
|
|
[node name="Laser" type="Node2D" node_paths=PackedStringArray("collider")]
|
|
script = ExtResource("1_6nacn")
|
|
speed = 600.0
|
|
collider = NodePath("Collision")
|
|
|
|
[node name="LaserBody" type="Line2D" parent="."]
|
|
points = PackedVector2Array(2, 0, 30, 0)
|
|
width = 4.0
|
|
begin_cap_mode = 2
|
|
end_cap_mode = 2
|
|
round_precision = 4
|
|
|
|
[node name="Collision" type="Area2D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
|
|
position = Vector2(16, -4.34399e-05)
|
|
rotation = -1.5708
|
|
shape = SubResource("RectangleShape2D_mo2if")
|