ufo_1.tscn 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [gd_scene load_steps=12 format=3 uid="uid://mfhn7mohmimt"]
  2. [ext_resource type="Script" path="res://scene/entity/ufo.gd" id="1_3oxp2"]
  3. [ext_resource type="Script" path="res://addons/fake_parallax/fake_parallax.gd" id="2_6l42y"]
  4. [ext_resource type="Texture2D" uid="uid://csqk7vyq6ecpl" path="res://res/witch_ufo_bot.png" id="3_qpday"]
  5. [ext_resource type="Texture2D" uid="uid://baacv2khh4ef8" path="res://res/witch_ufo_top.png" id="4_q1mhr"]
  6. [ext_resource type="Texture2D" uid="uid://dil0tx0ab553l" path="res://res/pbar.png" id="5_cf3a7"]
  7. [ext_resource type="Texture2D" uid="uid://b5jrxsko40vge" path="res://res/pbar2.png" id="6_pofdg"]
  8. [ext_resource type="AudioStream" uid="uid://vto0qax0wsf1" path="res://snd/mus/ld52-001.ogg" id="7_ls50j"]
  9. [ext_resource type="AudioStream" uid="uid://d1rxdiuhw4kfy" path="res://snd/mus/ld52-003.ogg" id="8_en80a"]
  10. [ext_resource type="AudioStream" uid="uid://b78r3yehfioyu" path="res://snd/sfx/explosion.wav" id="9_sft0k"]
  11. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="10_nswe8"]
  12. [sub_resource type="CircleShape2D" id="CircleShape2D_maxop"]
  13. radius = 223.258
  14. [node name="WitchUfo" type="CharacterBody2D"]
  15. collision_mask = 0
  16. motion_mode = 1
  17. script = ExtResource("1_3oxp2")
  18. wheat_out = 5
  19. should_rotate = false
  20. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  21. position = Vector2(-2, -1)
  22. shape = SubResource("CircleShape2D_maxop")
  23. [node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
  24. process_mode = 3
  25. path_desired_distance = 5.0
  26. target_desired_distance = 100.0
  27. path_max_distance = 40.0
  28. avoidance_enabled = true
  29. radius = 150.0
  30. neighbor_distance = 1600.0
  31. max_speed = 800.0
  32. [node name="Plx" type="Node2D" parent="."]
  33. script = ExtResource("2_6l42y")
  34. rate = 0.03
  35. [node name="Bot" type="Sprite2D" parent="Plx"]
  36. position = Vector2(-44, 73)
  37. texture = ExtResource("3_qpday")
  38. [node name="Ray" type="Polygon2D" parent="Plx"]
  39. color = Color(0.360784, 0, 0.356863, 0.196078)
  40. antialiased = true
  41. polygon = PackedVector2Array(-19, 88, -171, 527, 88, 525, 19, 86)
  42. [node name="Top" type="Sprite2D" parent="Plx"]
  43. texture = ExtResource("4_q1mhr")
  44. [node name="HP" type="TextureProgressBar" parent="Plx"]
  45. custom_minimum_size = Vector2(100, 0)
  46. anchors_preset = 5
  47. anchor_left = 0.5
  48. anchor_right = 0.5
  49. offset_left = -32.0
  50. offset_top = -150.0
  51. offset_right = 118.0
  52. offset_bottom = -120.0
  53. grow_horizontal = 2
  54. value = 100.0
  55. texture_under = ExtResource("5_cf3a7")
  56. texture_progress = ExtResource("6_pofdg")
  57. texture_progress_offset = Vector2(11, 0)
  58. [node name="RerollTimer" type="Timer" parent="."]
  59. wait_time = 0.1
  60. one_shot = true
  61. [node name="DamageTimer" type="Timer" parent="."]
  62. wait_time = 0.05
  63. [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]]
  64. stream = ExtResource("7_ls50j")
  65. panning_strength = 1.5
  66. bus = &"Music"
  67. [node name="AudioStreamPlayer2D2" type="AudioStreamPlayer2D" parent="." groups=["sound_player"]]
  68. stream = ExtResource("8_en80a")
  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("9_sft0k")
  76. volume_db = -6.0
  77. bus = &"SFX"
  78. script = ExtResource("10_nswe8")
  79. [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]