BuzzyBeetleShell.tscn 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. [gd_scene load_steps=13 format=3 uid="uid://csdbt4vd14fsg"]
  2. [ext_resource type="Script" uid="uid://b0mk8rdwt73w0" path="res://Scripts/Classes/Entities/ShellClass.gd" id="1_67hvo"]
  3. [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="2_67hvo"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_gsbuf"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/Enemies/BuzzyBeetleShell.json" id="4_7m7wg"]
  6. [ext_resource type="Script" uid="uid://chj8hu207lrh" path="res://Scripts/Classes/Components/EnemyPlayerDetection.gd" id="5_i84ew"]
  7. [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="6_ih7eq"]
  8. [ext_resource type="Script" uid="uid://c3gg32ivrlq8n" path="res://Scripts/Classes/Components/GibSpawner.gd" id="7_btb0t"]
  9. [ext_resource type="Script" uid="uid://bbww34oiexbx2" path="res://Scripts/Classes/Components/ShellDetection.gd" id="8_ck65x"]
  10. [ext_resource type="Script" uid="uid://dri2d5jtu0fbq" path="res://Scripts/Classes/Components/FireballDetection.gd" id="9_8ro46"]
  11. [ext_resource type="Script" uid="uid://cmg61722ktg2m" path="res://Scripts/Classes/Components/BlockBouncingDetection.gd" id="10_mt4yi"]
  12. [sub_resource type="RectangleShape2D" id="RectangleShape2D_hddfq"]
  13. size = Vector2(16, 12)
  14. [sub_resource type="RectangleShape2D" id="RectangleShape2D_67hvo"]
  15. size = Vector2(12, 12)
  16. [node name="BuzzyBeetleShell" type="CharacterBody2D" node_paths=PackedStringArray("on_screen_enabler", "score_note_adder") groups=["Enemies"]]
  17. collision_layer = 32
  18. collision_mask = 6
  19. script = ExtResource("1_67hvo")
  20. on_screen_enabler = NodePath("VisibleOnScreenEnabler2D")
  21. score_note_adder = NodePath("ScoreNoteSpawner")
  22. [node name="Sprite" type="AnimatedSprite2D" parent="."]
  23. position = Vector2(0, -8)
  24. offset = Vector2(0, 1)
  25. script = ExtResource("2_67hvo")
  26. metadata/_custom_type_script = "uid://caq1qiwmy0mox"
  27. [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
  28. script = ExtResource("3_gsbuf")
  29. node_to_affect = NodePath("..")
  30. property_name = "sprite_frames"
  31. resource_json = ExtResource("4_7m7wg")
  32. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  33. [node name="Hitbox" type="Area2D" parent="."]
  34. collision_mask = 5
  35. [node name="Collision" type="CollisionShape2D" parent="Hitbox"]
  36. position = Vector2(0, -6)
  37. shape = SubResource("RectangleShape2D_hddfq")
  38. [node name="EnemyPlayerDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  39. script = ExtResource("5_i84ew")
  40. hitbox = NodePath("../Hitbox")
  41. metadata/_custom_type_script = "uid://chj8hu207lrh"
  42. [node name="ScoreNoteSpawner" type="Node" parent="."]
  43. script = ExtResource("6_ih7eq")
  44. add_score = true
  45. metadata/_custom_type_script = "uid://5octqlf4ohel"
  46. [node name="GibSpawner" type="Node" parent="." node_paths=PackedStringArray("visuals")]
  47. script = ExtResource("7_btb0t")
  48. visuals = NodePath("../Sprite")
  49. metadata/_custom_type_script = "uid://c3gg32ivrlq8n"
  50. [node name="ShellDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  51. script = ExtResource("8_ck65x")
  52. hitbox = NodePath("../Hitbox")
  53. metadata/_custom_type_script = "uid://bbww34oiexbx2"
  54. [node name="FireballDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  55. script = ExtResource("9_8ro46")
  56. hitbox = NodePath("../Hitbox")
  57. play_sfx_on_hit = true
  58. metadata/_custom_type_script = "uid://dri2d5jtu0fbq"
  59. [node name="BlockBouncingDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  60. script = ExtResource("10_mt4yi")
  61. hitbox = NodePath("../Hitbox")
  62. metadata/_custom_type_script = "uid://cmg61722ktg2m"
  63. [node name="LCollision" type="CollisionShape2D" parent="."]
  64. position = Vector2(0, -6)
  65. rotation = 1.5708
  66. shape = SubResource("RectangleShape2D_67hvo")
  67. one_way_collision = true
  68. [node name="RCollision" type="CollisionShape2D" parent="."]
  69. position = Vector2(0, -6)
  70. rotation = -1.5708
  71. shape = SubResource("RectangleShape2D_67hvo")
  72. one_way_collision = true
  73. [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
  74. position = Vector2(0, -8)
  75. [connection signal="killed" from="." to="GibSpawner" method="summon_gib"]
  76. [connection signal="area_entered" from="Hitbox" to="." method="on_area_entered"]
  77. [connection signal="invincible_player_hit" from="EnemyPlayerDetection" to="." method="die_from_object"]
  78. [connection signal="player_hit" from="EnemyPlayerDetection" to="." method="on_player_hit"]
  79. [connection signal="player_stomped_on" from="EnemyPlayerDetection" to="." method="on_player_stomped_on"]
  80. [connection signal="moving_shell_entered" from="ShellDetection" to="." method="die_from_object"]
  81. [connection signal="block_bounced" from="BlockBouncingDetection" to="." method="block_bounced"]