2020-10-05 14:38:54 +00:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2020-10-04 22:47:54 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://Sprites/laser_gun.png" type="Texture" id=1]
|
2020-10-05 14:38:54 +00:00
|
|
|
[ext_resource path="res://Objects/Laser.gd" type="Script" id=2]
|
2020-10-04 22:47:54 +00:00
|
|
|
[ext_resource path="res://Sprites/laser_beam_end.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://Sprites/laser_beam_continuous.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Utilities/RecreatingRectangleShape.tscn" type="PackedScene" id=5]
|
2020-10-05 14:38:54 +00:00
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Utilities/WrapParent.tscn" type="PackedScene" id=6]
|
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Utilities/ConveyorScrollParent.tscn" type="PackedScene" id=7]
|
2020-10-04 22:47:54 +00:00
|
|
|
|
2020-10-05 20:20:12 +00:00
|
|
|
[node name="ScrollingLaser" type="Node2D"]
|
2020-10-04 22:47:54 +00:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="Beam" type="Area2D" parent="."]
|
2020-10-05 16:34:41 +00:00
|
|
|
collision_layer = 2147483656
|
|
|
|
collision_mask = 2
|
2020-10-04 22:47:54 +00:00
|
|
|
|
|
|
|
[node name="Raycast" type="RayCast2D" parent="Beam"]
|
|
|
|
visible = false
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 720 )
|
|
|
|
collision_mask = 29
|
|
|
|
|
|
|
|
[node name="Continuous" type="Sprite" parent="Beam"]
|
|
|
|
position = Vector2( -20, 0 )
|
|
|
|
scale = Vector2( 1, 0.5 )
|
|
|
|
texture = ExtResource( 4 )
|
|
|
|
centered = false
|
|
|
|
|
|
|
|
[node name="End" type="Sprite" parent="Beam"]
|
|
|
|
position = Vector2( 0, 20 )
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="Upper" type="Sprite" parent="Beam"]
|
|
|
|
position = Vector2( -20, -20 )
|
|
|
|
scale = Vector2( 1, 0.5 )
|
|
|
|
texture = ExtResource( 4 )
|
|
|
|
centered = false
|
|
|
|
|
|
|
|
[node name="RecreatingRectangleShape" parent="Beam" instance=ExtResource( 5 )]
|
|
|
|
|
|
|
|
[node name="Gun" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="Gun"]
|
|
|
|
position = Vector2( 0, -40 )
|
|
|
|
texture = ExtResource( 1 )
|
2020-10-05 14:38:54 +00:00
|
|
|
|
|
|
|
[node name="ConveyorScrollParent" parent="." instance=ExtResource( 7 )]
|
|
|
|
|
|
|
|
[node name="WrapParent" parent="." instance=ExtResource( 6 )]
|
2020-10-05 16:34:41 +00:00
|
|
|
[connection signal="body_entered" from="Beam" to="." method="_on_Beam_body_entered"]
|