24 lines
737 B
Text
24 lines
737 B
Text
[gd_scene load_steps=3 format=3 uid="uid://djmoij5kuou3j"]
|
|
|
|
[ext_resource type="Script" path="res://modules/projectile.gd" id="1_plpqo"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mo2if"]
|
|
size = Vector2(1, 8)
|
|
|
|
[node name="Laser" type="Node2D" node_paths=PackedStringArray("Collider")]
|
|
script = ExtResource("1_plpqo")
|
|
Speed = 600.0
|
|
Collider = NodePath("Collision")
|
|
|
|
[node name="LaserBody" type="Line2D" parent="."]
|
|
points = PackedVector2Array(0, 0, 8, 0)
|
|
width = 1.0
|
|
|
|
[node name="Collision" type="Area2D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
|
|
position = Vector2(4, 0)
|
|
rotation = -1.5708
|
|
shape = SubResource("RectangleShape2D_mo2if")
|