[gd_scene load_steps=12 format=3 uid="uid://cnpyrh4c6a7cg"]

[ext_resource type="Script" uid="uid://dld4egumb2u0o" path="res://games/bullet_hell/bullet_hell.gd" id="1_uvm3w"]
[ext_resource type="Script" uid="uid://c100m60xe4k3r" path="res://games/bullet_hell/bulletHellMovement.gd" id="1_x66ke"]
[ext_resource type="Texture2D" uid="uid://dyeqeyvksc8xh" path="res://sprites/bombGuy.png" id="3_uvm3w"]

[sub_resource type="Gradient" id="Gradient_x66ke"]
colors = PackedColorArray(0.552941, 0, 0, 1, 1, 0.513875, 0.319104, 1)

[sub_resource type="FastNoiseLite" id="FastNoiseLite_uvm3w"]

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_4njol"]
width = 640
height = 360
color_ramp = SubResource("Gradient_x66ke")
noise = SubResource("FastNoiseLite_uvm3w")

[sub_resource type="RectangleShape2D" id="RectangleShape2D_jfgig"]
size = Vector2(38, 38)

[sub_resource type="CircleShape2D" id="CircleShape2D_4njol"]
radius = 21.0

[sub_resource type="Curve2D" id="Curve2D_uvm3w"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 400, 0, 0, 360)
}
point_count = 2

[sub_resource type="LabelSettings" id="LabelSettings_uvm3w"]
font_size = 46

[sub_resource type="RectangleShape2D" id="RectangleShape2D_uvm3w"]
size = Vector2(658, 26)

[node name="BulletHell" type="Node" node_paths=PackedStringArray("spawn_line", "follow_line", "win_progress")]
script = ExtResource("1_uvm3w")
spawn_line = NodePath("Path2D")
follow_line = NodePath("Path2D/PathFollow2D")
win_progress = NodePath("ProgressBar")

[node name="TextureRect" type="TextureRect" parent="."]
z_index = -2
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("NoiseTexture2D_4njol")

[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(295, 179)
motion_mode = 1
script = ExtResource("1_x66ke")

[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
visible = false
shape = SubResource("RectangleShape2D_jfgig")

[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
scale = Vector2(3, 3)
texture = ExtResource("3_uvm3w")

[node name="hitbox" type="Area2D" parent="CharacterBody2D"]

[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D/hitbox"]
position = Vector2(0, -3)
shape = SubResource("CircleShape2D_4njol")

[node name="Path2D" type="Path2D" parent="."]
position = Vector2(-19, 0)
curve = SubResource("Curve2D_uvm3w")

[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
rotation = 1.5708

[node name="ProgressBar" type="ProgressBar" parent="."]
modulate = Color(0, 1, 0, 1)
custom_minimum_size = Vector2(32, 0)
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -4.0
grow_horizontal = 0
grow_vertical = 2
max_value = 1.0
step = 0.0
value = 0.335
fill_mode = 3
show_percentage = false

[node name="Label" type="Label" parent="."]
z_index = -1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -180.0
offset_top = -75.0
offset_right = 180.0
offset_bottom = -11.0
grow_horizontal = 2
grow_vertical = 0
text = "Dodge with IJKL!"
label_settings = SubResource("LabelSettings_uvm3w")

[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(-3, -17)

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(319, 3)
shape = SubResource("RectangleShape2D_uvm3w")

[node name="StaticBody2D2" type="StaticBody2D" parent="."]
position = Vector2(-3, 370)

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2(319, 3)
shape = SubResource("RectangleShape2D_uvm3w")

[node name="StaticBody2D3" type="StaticBody2D" parent="."]
position = Vector2(-10, -77)
rotation = 1.57079

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
position = Vector2(319, 3)
shape = SubResource("RectangleShape2D_uvm3w")

[node name="StaticBody2D4" type="StaticBody2D" parent="."]
position = Vector2(656, -91)
rotation = 1.57079

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
position = Vector2(319, 3)
shape = SubResource("RectangleShape2D_uvm3w")

[connection signal="area_entered" from="CharacterBody2D/hitbox" to="." method="_on_hitbox_area_entered"]
