[gd_scene load_steps=11 format=3 uid="uid://cv3bq4qcu0r6k"] [ext_resource type="Script" path="res://scene/entity/ufo.gd" id="1_nf0xj"] [ext_resource type="Script" path="res://addons/fake_parallax/fake_parallax.gd" id="2_hsc4o"] [ext_resource type="Texture2D" uid="uid://bs2pgbdbsf3ey" path="res://res/fork.png" id="3_i6xja"] [ext_resource type="Texture2D" uid="uid://dil0tx0ab553l" path="res://res/pbar.png" id="4_2yfhy"] [ext_resource type="Texture2D" uid="uid://b5jrxsko40vge" path="res://res/pbar2.png" id="5_arfur"] [ext_resource type="AudioStream" uid="uid://d30ydgok76ii6" path="res://snd/mus/ld52-004.ogg" id="6_1ke6q"] [ext_resource type="AudioStream" uid="uid://ckjujaa5v1xl7" path="res://snd/mus/ld52-009.ogg" id="7_vbddy"] [ext_resource type="AudioStream" uid="uid://dmqxlbrefsbty" path="res://snd/sfx/explosion(1).wav" id="8_uoxbc"] [ext_resource type="Script" path="res://scene/entity/pc.gd" id="9_6r16m"] [sub_resource type="CircleShape2D" id="CircleShape2D_3w70t"] radius = 99.0454 [node name="ForkUfo" type="CharacterBody2D"] collision_mask = 0 motion_mode = 1 script = ExtResource("1_nf0xj") movement_speed = 1400.0 radius = 30.0 dps = 4.0 max_hp = 70.0 wheat_out = 4 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(-2, -1) shape = SubResource("CircleShape2D_3w70t") [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_hsc4o") rate = 0.03 [node name="Ray" type="Polygon2D" parent="Plx"] position = Vector2(82, -103) color = Color(0.360784, 0, 0.356863, 0.196078) antialiased = true polygon = PackedVector2Array(-45, 76, 249, 120, 249, 37, -24, 76) [node name="Ray2" type="Polygon2D" parent="Plx"] position = Vector2(-15, -102) color = Color(0.360784, 0, 0.356863, 0.196078) antialiased = true polygon = PackedVector2Array(-45, 76, 249, 120, 249, 37, -24, 76) [node name="Top" type="Sprite2D" parent="Plx"] scale = Vector2(1.3, 1.3) texture = ExtResource("3_i6xja") [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("4_2yfhy") texture_progress = ExtResource("5_arfur") 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_1ke6q") volume_db = -4.952 panning_strength = 1.5 bus = &"Music" [node name="AudioStreamPlayer2D2" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]] stream = ExtResource("7_vbddy") volume_db = -4.952 panning_strength = 1.5 bus = &"Music" [node name="Area2D" type="Area2D" parent="."] [node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="Area2D"] polygon = PackedVector2Array(44.5, -42.2, 35.5, -30.5, -4.5, -30.5, -4.5, -17.2, 34.5, -11.2, 34.5, -9.8, 44.5, -5.3, 44.5, 4.5, 33.1, 11.5, 27.8, 11.5, -4.5, 17.2, -4.5, 30.5, 30.2, 30.5, 35.5, 28.7, 35.5, 31.5, 40.5, 35.5, 40.5, 37.9, 44.5, 45.3, 44.5, 49.5, -30.1, 49.5, -40.5, 42.6, -40.5, 14.1, -44.5, 8.1, -44.5, -6.7, -40.5, -14, -40.5, -43.5, -38.1, -43.5, -28.7, -49.5, 44.5, -49.5) [node name="Coin" type="AudioStreamPlayer2D" parent="."] stream = ExtResource("8_uoxbc") volume_db = -6.0 bus = &"SFX" script = ExtResource("9_6r16m") [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]