ufo_2.tscn 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [gd_scene load_steps=10 format=3 uid="uid://cr2u5xgg7yhdw"]
  2. [ext_resource type="Script" path="res://scene/entity/ufo.gd" id="1_o7w36"]
  3. [ext_resource type="Script" path="res://addons/fake_parallax/fake_parallax.gd" id="2_2jwu5"]
  4. [ext_resource type="Texture2D" uid="uid://bs2pgbdbsf3ey" path="res://res/fork.png" id="3_hvlfv"]
  5. [ext_resource type="Texture2D" uid="uid://dil0tx0ab553l" path="res://res/pbar.png" id="5_5d2mv"]
  6. [ext_resource type="AudioStream" uid="uid://d30ydgok76ii6" path="res://snd/mus/ld52-004.ogg" id="6_2yd02"]
  7. [ext_resource type="Texture2D" uid="uid://b5jrxsko40vge" path="res://res/pbar2.png" id="6_ds0xw"]
  8. [ext_resource type="AudioStream" uid="uid://dmqxlbrefsbty" path="res://snd/sfx/explosion(1).wav" id="7_po7jr"]
  9. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="8_c1ur1"]
  10. [sub_resource type="CircleShape2D" id="CircleShape2D_vgku8"]
  11. radius = 99.0454
  12. [node name="ForkUfo" type="CharacterBody2D"]
  13. collision_mask = 0
  14. motion_mode = 1
  15. script = ExtResource("1_o7w36")
  16. movement_speed = 1400.0
  17. radius = 30.0
  18. dps = 4.0
  19. max_hp = 30.0
  20. wheat_out = 1
  21. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  22. position = Vector2(-2, -1)
  23. shape = SubResource("CircleShape2D_vgku8")
  24. [node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
  25. process_mode = 3
  26. path_desired_distance = 5.0
  27. target_desired_distance = 100.0
  28. path_max_distance = 40.0
  29. avoidance_enabled = true
  30. radius = 150.0
  31. neighbor_distance = 1600.0
  32. max_speed = 800.0
  33. [node name="Plx" type="Node2D" parent="."]
  34. script = ExtResource("2_2jwu5")
  35. rate = 0.03
  36. [node name="Ray" type="Polygon2D" parent="Plx"]
  37. position = Vector2(35, -75)
  38. color = Color(0.360784, 0, 0.356863, 0.196078)
  39. antialiased = true
  40. polygon = PackedVector2Array(-45, 76, 249, 120, 249, 37, -24, 76)
  41. [node name="Top" type="Sprite2D" parent="Plx"]
  42. texture = ExtResource("3_hvlfv")
  43. [node name="HP" type="TextureProgressBar" parent="Plx"]
  44. custom_minimum_size = Vector2(100, 0)
  45. anchors_preset = 5
  46. anchor_left = 0.5
  47. anchor_right = 0.5
  48. offset_left = -75.0
  49. offset_top = -150.0
  50. offset_right = 75.0
  51. offset_bottom = -120.0
  52. grow_horizontal = 2
  53. value = 100.0
  54. texture_under = ExtResource("5_5d2mv")
  55. texture_progress = ExtResource("6_ds0xw")
  56. texture_progress_offset = Vector2(11, 0)
  57. [node name="RerollTimer" type="Timer" parent="."]
  58. wait_time = 0.1
  59. one_shot = true
  60. [node name="DamageTimer" type="Timer" parent="."]
  61. wait_time = 0.05
  62. [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]]
  63. stream = ExtResource("6_2yd02")
  64. volume_db = -4.952
  65. panning_strength = 1.5
  66. bus = &"Music"
  67. [node name="Area2D" type="Area2D" parent="."]
  68. [node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="Area2D"]
  69. 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)
  70. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  71. stream = ExtResource("7_po7jr")
  72. volume_db = -6.0
  73. bus = &"SFX"
  74. script = ExtResource("8_c1ur1")
  75. [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]