ufo_4.tscn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=11 format=3 uid="uid://gxcd2x6nw0i"]
  2. [ext_resource type="Script" path="res://scene/entity/ufo.gd" id="1_1w43w"]
  3. [ext_resource type="Script" path="res://addons/fake_parallax/fake_parallax.gd" id="2_gm1b8"]
  4. [ext_resource type="Texture2D" uid="uid://csqk7vyq6ecpl" path="res://res/witch_ufo_bot.png" id="3_g4i2j"]
  5. [ext_resource type="Texture2D" uid="uid://baacv2khh4ef8" path="res://res/witch_ufo_top.png" id="4_mdvt5"]
  6. [ext_resource type="Texture2D" uid="uid://dil0tx0ab553l" path="res://res/pbar.png" id="5_7xohd"]
  7. [ext_resource type="Texture2D" uid="uid://b5jrxsko40vge" path="res://res/pbar2.png" id="6_88oiw"]
  8. [ext_resource type="AudioStream" uid="uid://b012jhb83jo30" path="res://snd/mus/ld52-006.ogg" id="7_t5ir7"]
  9. [ext_resource type="AudioStream" uid="uid://dmqxlbrefsbty" path="res://snd/sfx/explosion(1).wav" id="8_yj32d"]
  10. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="9_3wuwx"]
  11. [sub_resource type="CircleShape2D" id="CircleShape2D_jpvqu"]
  12. radius = 223.258
  13. [node name="WitchUfo" type="CharacterBody2D"]
  14. scale = Vector2(3, 3)
  15. collision_mask = 0
  16. motion_mode = 1
  17. script = ExtResource("1_1w43w")
  18. movement_speed = 200.0
  19. radius = 450.0
  20. dps = 150.0
  21. max_hp = 20001.0
  22. wheat_out = 100
  23. should_rotate = false
  24. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  25. position = Vector2(-2, -1)
  26. shape = SubResource("CircleShape2D_jpvqu")
  27. [node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
  28. process_mode = 3
  29. path_desired_distance = 5.0
  30. target_desired_distance = 100.0
  31. path_max_distance = 40.0
  32. avoidance_enabled = true
  33. radius = 150.0
  34. neighbor_distance = 1600.0
  35. max_speed = 800.0
  36. [node name="Plx" type="Node2D" parent="."]
  37. script = ExtResource("2_gm1b8")
  38. rate = 0.03
  39. [node name="Bot" type="Sprite2D" parent="Plx"]
  40. position = Vector2(-44, 73)
  41. texture = ExtResource("3_g4i2j")
  42. [node name="Ray" type="Polygon2D" parent="Plx"]
  43. color = Color(0.360784, 0, 0.356863, 0.745098)
  44. antialiased = true
  45. polygon = PackedVector2Array(-19, 88, -171, 527, 88, 525, 19, 86)
  46. [node name="Top" type="Sprite2D" parent="Plx"]
  47. texture = ExtResource("4_mdvt5")
  48. [node name="HP" type="TextureProgressBar" parent="Plx"]
  49. custom_minimum_size = Vector2(100, 0)
  50. anchors_preset = 5
  51. anchor_left = 0.5
  52. anchor_right = 0.5
  53. offset_left = -75.0
  54. offset_top = -150.0
  55. offset_right = 75.0
  56. offset_bottom = -120.0
  57. grow_horizontal = 2
  58. value = 100.0
  59. texture_under = ExtResource("5_7xohd")
  60. texture_progress = ExtResource("6_88oiw")
  61. texture_progress_offset = Vector2(11, 0)
  62. [node name="RerollTimer" type="Timer" parent="."]
  63. wait_time = 0.1
  64. one_shot = true
  65. [node name="DamageTimer" type="Timer" parent="."]
  66. wait_time = 0.05
  67. [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]]
  68. stream = ExtResource("7_t5ir7")
  69. panning_strength = 1.5
  70. bus = &"Music"
  71. [node name="Area2D" type="Area2D" parent="."]
  72. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Area2D"]
  73. polygon = PackedVector2Array(80.5, -98.7, 80.5, -93.6, 105.5, -55.5, 105.5, -45.6, 94.8, -18.1, 80.7, -20.8, 86.6, -1.2, 167.5, 36.1, 167.5, 40.4, 185.5, 66.4, 185.5, 92.5, 182.4, 92.5, 30.2, 105.5, -131.9, 105.5, -185.5, 94.4, -185.5, 57.6, -81.6, -1.4, -15.4, -87.5, -12.6, -87.5, 13.4, -105.5, 60.6, -105.5)
  74. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  75. stream = ExtResource("8_yj32d")
  76. volume_db = -6.0
  77. bus = &"SFX"
  78. script = ExtResource("9_3wuwx")
  79. [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]