ufo_2_big.tscn 3.8 KB

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