[gd_scene load_steps=22 format=3 uid="uid://4lc6bvf7b8a0"]

[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="2_3i0n3"]
[ext_resource type="Script" path="res://laser_enemy.gd" id="2_lyi2i"]
[ext_resource type="Script" path="res://Laser.gd" id="3_hosl5"]
[ext_resource type="Texture2D" uid="uid://pvrk6wkx47kn" path="res://ircle.png" id="4_qdecp"]
[ext_resource type="AudioStream" uid="uid://4ou7posn1vbd" path="res://laserSmall_004.ogg" id="5_tkxjf"]

[sub_resource type="AtlasTexture" id="AtlasTexture_m6u7o"]
atlas = ExtResource("4_qdecp")
region = Rect2(0, 0, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_thiwg"]
atlas = ExtResource("4_qdecp")
region = Rect2(24, 0, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_ty71x"]
atlas = ExtResource("4_qdecp")
region = Rect2(48, 0, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_ac61s"]
atlas = ExtResource("4_qdecp")
region = Rect2(72, 0, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_sx0yi"]
atlas = ExtResource("4_qdecp")
region = Rect2(96, 0, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_lxp8e"]
atlas = ExtResource("4_qdecp")
region = Rect2(0, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_rumou"]
atlas = ExtResource("4_qdecp")
region = Rect2(24, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_adgux"]
atlas = ExtResource("4_qdecp")
region = Rect2(48, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_xlia3"]
atlas = ExtResource("4_qdecp")
region = Rect2(72, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_ssqcu"]
atlas = ExtResource("4_qdecp")
region = Rect2(96, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_86b3m"]
atlas = ExtResource("4_qdecp")
region = Rect2(0, 48, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_psh1s"]
atlas = ExtResource("4_qdecp")
region = Rect2(24, 48, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_2jx4o"]
atlas = ExtResource("4_qdecp")
region = Rect2(48, 48, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_pwarp"]
atlas = ExtResource("4_qdecp")
region = Rect2(72, 48, 24, 24)

[sub_resource type="SpriteFrames" id="SpriteFrames_s64kc"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_m6u7o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_thiwg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ty71x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ac61s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sx0yi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lxp8e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rumou")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_adgux")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xlia3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ssqcu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_86b3m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_psh1s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2jx4o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pwarp")
}],
"loop": true,
"name": &"shoot",
"speed": 5.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_yns8h"]
radius = 128.0

[node name="Ircle" type="StaticBody2D" groups=["destructible", "enemy"]]
scale = Vector2(0.2, 0.2)
script = ExtResource("2_lyi2i")

[node name="Line2D" type="Line2D" parent="."]
z_index = -2
texture_filter = 1
texture_repeat = 2
position = Vector2(-65, 0)
points = PackedVector2Array(0, 0, 1075, 0)
width = 144.33
texture = ExtResource("2_3i0n3")
texture_mode = 1
script = ExtResource("3_hosl5")

[node name="VisibleTimer" type="Timer" parent="Line2D"]
wait_time = 0.2

[node name="RayCast2D" type="RayCast2D" parent="Line2D"]
target_position = Vector2(50000, 2.08165e-12)
collision_mask = 3

[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(-7.62939e-06, 7.62939e-06)
scale = Vector2(10.8333, 10.8333)
sprite_frames = SubResource("SpriteFrames_s64kc")
animation = &"shoot"
speed_scale = 2.6

[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
autostart = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_yns8h")

[node name="LaserFX" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_tkxjf")

[node name="ShieldMarker" type="Marker2D" parent="."]
scale = Vector2(6, 6)

[connection signal="timeout" from="Line2D/VisibleTimer" to="Line2D" method="set_transparent"]
[connection signal="timeout" from="Timer" to="." method="fire_laser"]
