[gd_scene load_steps=10 format=3 uid="uid://cp63rvykkii0v"]

[ext_resource type="Script" path="res://scene/entity/ufo.gd" id="1_cms35"]
[ext_resource type="Script" path="res://addons/fake_parallax/fake_parallax.gd" id="2_psv2f"]
[ext_resource type="Texture2D" uid="uid://skwe3cc7xbuh" path="res://res/star.png" id="3_aax7u"]
[ext_resource type="Texture2D" uid="uid://dil0tx0ab553l" path="res://res/pbar.png" id="5_fidyk"]
[ext_resource type="AudioStream" uid="uid://duh6bj2qs0pni" path="res://snd/mus/ld52-005.ogg" id="6_8tq0x"]
[ext_resource type="Texture2D" uid="uid://b5jrxsko40vge" path="res://res/pbar2.png" id="6_k58jn"]
[ext_resource type="AudioStream" uid="uid://dmqxlbrefsbty" path="res://snd/sfx/explosion(1).wav" id="7_qj3sr"]
[ext_resource type="Script" path="res://scene/entity/pc.gd" id="8_3cgvt"]

[sub_resource type="CircleShape2D" id="CircleShape2D_prh1k"]
radius = 127.063

[node name="Star" type="CharacterBody2D"]
collision_mask = 0
motion_mode = 1
script = ExtResource("1_cms35")
dps = 26.0
max_hp = 12.0
wheat_out = 8

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-2, -1)
shape = SubResource("CircleShape2D_prh1k")

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
process_mode = 3
path_desired_distance = 5.0
target_desired_distance = 100.0
path_max_distance = 40.0
avoidance_enabled = true
radius = 150.0
neighbor_distance = 1600.0
max_speed = 800.0

[node name="Plx" type="Node2D" parent="."]
script = ExtResource("2_psv2f")
rate = 0.03

[node name="Ray" type="Polygon2D" parent="Plx"]
position = Vector2(-1, -89)
color = Color(0.360784, 0, 0.356863, 0.745098)
antialiased = true
polygon = PackedVector2Array(-19, 88, -113, 529, 88, 525, 19, 86)

[node name="Top" type="Sprite2D" parent="Plx"]
texture = ExtResource("3_aax7u")

[node name="HP" type="TextureProgressBar" parent="Plx"]
custom_minimum_size = Vector2(100, 0)
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -75.0
offset_top = -150.0
offset_right = 75.0
offset_bottom = -120.0
grow_horizontal = 2
value = 100.0
texture_under = ExtResource("5_fidyk")
texture_progress = ExtResource("6_k58jn")
texture_progress_offset = Vector2(11, 0)

[node name="RerollTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true

[node name="DamageTimer" type="Timer" parent="."]
wait_time = 0.05

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]]
stream = ExtResource("6_8tq0x")
panning_strength = 1.5
bus = &"Music"

[node name="Area2D" type="Area2D" parent="."]

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
position = Vector2(-2, -1)
shape = SubResource("CircleShape2D_prh1k")

[node name="Coin" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("7_qj3sr")
volume_db = -6.0
bus = &"SFX"
script = ExtResource("8_3cgvt")

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
