[gd_scene load_steps=20 format=3 uid="uid://dexgmkojd8tpt"]

[ext_resource type="Texture2D" uid="uid://dewjqad2imuiv" path="res://Effects/energy_shot.png" id="1_j2aai"]
[ext_resource type="Script" path="res://Scripts/linear_projectile.gd" id="2_0d2ts"]

[sub_resource type="AtlasTexture" id="AtlasTexture_v8ncq"]
atlas = ExtResource("1_j2aai")
region = Rect2(147, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_i2n43"]
atlas = ExtResource("1_j2aai")
region = Rect2(0, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_t8ay6"]
atlas = ExtResource("1_j2aai")
region = Rect2(21, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_bkv35"]
atlas = ExtResource("1_j2aai")
region = Rect2(42, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_lhvqi"]
atlas = ExtResource("1_j2aai")
region = Rect2(63, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_lp636"]
atlas = ExtResource("1_j2aai")
region = Rect2(84, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_ecj5n"]
atlas = ExtResource("1_j2aai")
region = Rect2(105, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_ymq7v"]
atlas = ExtResource("1_j2aai")
region = Rect2(126, 20, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_8lpkm"]
atlas = ExtResource("1_j2aai")
region = Rect2(0, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_tme2m"]
atlas = ExtResource("1_j2aai")
region = Rect2(21, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_rakex"]
atlas = ExtResource("1_j2aai")
region = Rect2(42, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_4eg3n"]
atlas = ExtResource("1_j2aai")
region = Rect2(63, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_re3wt"]
atlas = ExtResource("1_j2aai")
region = Rect2(84, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_buoc1"]
atlas = ExtResource("1_j2aai")
region = Rect2(105, 0, 21, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_v78jm"]
atlas = ExtResource("1_j2aai")
region = Rect2(126, 0, 21, 20)

[sub_resource type="SpriteFrames" id="SpriteFrames_xmbcy"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v8ncq")
}],
"loop": true,
"name": &"hit",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i2n43")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t8ay6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bkv35")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lhvqi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lp636")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ecj5n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ymq7v")
}],
"loop": true,
"name": &"horizontal",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8lpkm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tme2m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rakex")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4eg3n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_re3wt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_buoc1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v78jm")
}],
"loop": true,
"name": &"vertical",
"speed": 10.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_oiegt"]

[node name="EnergyBlast" type="AnimatedSprite2D"]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_xmbcy")
animation = &"vertical"
script = ExtResource("2_0d2ts")

[node name="Collision" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 34

[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
shape = SubResource("CircleShape2D_oiegt")
debug_color = Color(0.952941, 0.729412, 0, 0.419608)

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

[connection signal="area_entered" from="Collision" to="." method="_on_collision_area_entered"]
[connection signal="body_entered" from="Collision" to="." method="_on_collision_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timeout"]
