Sigebou.tscn 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. [gd_scene load_steps=23 format=3 uid="uid://b526l00ycqca3"]
  2. [ext_resource type="Script" uid="uid://dv18do583a3x0" path="res://Scripts/Classes/Entities/Enemies/Goomba.gd" id="1_ngqvx"]
  3. [ext_resource type="Texture2D" uid="uid://dtqjo5uvw6s0g" path="res://Assets/Sprites/Enemies/Sigebou.png" id="2_jkcbp"]
  4. [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_fqftj"]
  5. [ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="4_6tape"]
  6. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_bhka3"]
  7. [ext_resource type="JSON" path="res://Assets/Sprites/Enemies/Sigebou.json" id="5_7b1wr"]
  8. [ext_resource type="Script" uid="uid://chj8hu207lrh" path="res://Scripts/Classes/Components/EnemyPlayerDetection.gd" id="5_bhka3"]
  9. [ext_resource type="Script" uid="uid://c3gg32ivrlq8n" path="res://Scripts/Classes/Components/GibSpawner.gd" id="6_7b1wr"]
  10. [ext_resource type="Script" uid="uid://cmg61722ktg2m" path="res://Scripts/Classes/Components/BlockBouncingDetection.gd" id="7_g6e7j"]
  11. [ext_resource type="Script" uid="uid://dri2d5jtu0fbq" path="res://Scripts/Classes/Components/FireballDetection.gd" id="8_eg68x"]
  12. [ext_resource type="Script" uid="uid://bbww34oiexbx2" path="res://Scripts/Classes/Components/ShellDetection.gd" id="9_rqo8s"]
  13. [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="10_y7r83"]
  14. [ext_resource type="Script" uid="uid://dq860i312isk" path="res://Scripts/Classes/Components/IcicleDetection.gd" id="11_i4utn"]
  15. [ext_resource type="Script" uid="uid://cqif1li7otvpl" path="res://Scripts/Parts/SpriteFramesToJsonConverter.gd" id="12_6tape"]
  16. [ext_resource type="Script" uid="uid://dlq6o2rg1x7in" path="res://Scripts/Classes/Components/BasicEnemyMovement.gd" id="12_n4k0p"]
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_bhka3"]
  18. atlas = ExtResource("2_jkcbp")
  19. region = Rect2(0, 0, 16, 16)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_7b1wr"]
  21. atlas = ExtResource("2_jkcbp")
  22. region = Rect2(16, 0, 16, 16)
  23. [sub_resource type="SpriteFrames" id="SpriteFrames_g6e7j"]
  24. animations = [{
  25. "frames": [{
  26. "duration": 1.0,
  27. "texture": SubResource("AtlasTexture_bhka3")
  28. }, {
  29. "duration": 1.0,
  30. "texture": SubResource("AtlasTexture_7b1wr")
  31. }],
  32. "loop": true,
  33. "name": &"default",
  34. "speed": 5.0
  35. }]
  36. [sub_resource type="RectangleShape2D" id="RectangleShape2D_e62ic"]
  37. size = Vector2(12, 12)
  38. [sub_resource type="RectangleShape2D" id="RectangleShape2D_qm5my"]
  39. size = Vector2(14, 14)
  40. [sub_resource type="SpriteFrames" id="SpriteFrames_eg68x"]
  41. animations = [{
  42. "frames": [{
  43. "duration": 1.0,
  44. "texture": SubResource("AtlasTexture_bhka3")
  45. }, {
  46. "duration": 1.0,
  47. "texture": SubResource("AtlasTexture_7b1wr")
  48. }],
  49. "loop": true,
  50. "name": &"default",
  51. "speed": 5.0
  52. }]
  53. [sub_resource type="Resource" id="Resource_rqo8s"]
  54. script = ExtResource("4_6tape")
  55. Overworld = SubResource("SpriteFrames_eg68x")
  56. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  57. [node name="Sigebou" type="CharacterBody2D" node_paths=PackedStringArray("on_screen_enabler", "score_note_adder") groups=["Enemies"]]
  58. collision_layer = 16
  59. collision_mask = 50
  60. script = ExtResource("1_ngqvx")
  61. on_screen_enabler = NodePath("VisibleOnScreenEnabler2D")
  62. score_note_adder = NodePath("ScoreNoteSpawner")
  63. [node name="Sprite" type="AnimatedSprite2D" parent="."]
  64. position = Vector2(0, -8)
  65. scale = Vector2(-1, 1)
  66. sprite_frames = SubResource("SpriteFrames_g6e7j")
  67. autoplay = "default"
  68. frame_progress = 0.809314
  69. flip_h = true
  70. script = ExtResource("3_fqftj")
  71. metadata/_custom_type_script = "uid://caq1qiwmy0mox"
  72. [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
  73. script = ExtResource("4_bhka3")
  74. node_to_affect = NodePath("..")
  75. property_name = "sprite_frames"
  76. resource_json = ExtResource("5_7b1wr")
  77. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  78. [node name="Collision" type="CollisionShape2D" parent="."]
  79. visible = false
  80. position = Vector2(0, -6)
  81. shape = SubResource("RectangleShape2D_e62ic")
  82. [node name="Hitbox" type="Area2D" parent="."]
  83. position = Vector2(0, -8)
  84. [node name="Shape" type="CollisionShape2D" parent="Hitbox"]
  85. shape = SubResource("RectangleShape2D_qm5my")
  86. [node name="EnemyPlayerDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  87. script = ExtResource("5_bhka3")
  88. hitbox = NodePath("../Hitbox")
  89. [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
  90. self_modulate = Color(1, 1, 1, 0)
  91. position = Vector2(0, -8)
  92. [node name="GibSpawner" type="Node" parent="." node_paths=PackedStringArray("visuals")]
  93. script = ExtResource("6_7b1wr")
  94. visuals = NodePath("../Sprite")
  95. gib_type = 2
  96. [node name="BlockBouncingDetection" type="Node" parent="."]
  97. script = ExtResource("7_g6e7j")
  98. [node name="FireballDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  99. script = ExtResource("8_eg68x")
  100. hitbox = NodePath("../Hitbox")
  101. play_sfx_on_hit = true
  102. [node name="ShellDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  103. script = ExtResource("9_rqo8s")
  104. hitbox = NodePath("../Hitbox")
  105. metadata/_custom_type_script = "uid://bbww34oiexbx2"
  106. [node name="ScoreNoteSpawner" type="Node" parent="."]
  107. script = ExtResource("10_y7r83")
  108. add_score = true
  109. [node name="Node" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
  110. script = ExtResource("11_i4utn")
  111. hitbox = NodePath("../Hitbox")
  112. [node name="BasicEnemyMovement" type="Node" parent="." node_paths=PackedStringArray("visuals")]
  113. script = ExtResource("12_n4k0p")
  114. visuals = NodePath("../Sprite")
  115. metadata/_custom_type_script = "uid://dlq6o2rg1x7in"
  116. [node name="ThemedToJSONConverter" type="Node" parent="."]
  117. script = ExtResource("12_6tape")
  118. resource = SubResource("Resource_rqo8s")
  119. json_file_path = "res://Assets/Sprites/Enemies/Sigebou.json"
  120. metadata/_custom_type_script = "uid://cqif1li7otvpl"
  121. [connection signal="killed" from="." to="GibSpawner" method="summon_gib"]
  122. [connection signal="invincible_player_hit" from="EnemyPlayerDetection" to="." method="die_from_object"]
  123. [connection signal="invincible_player_hit" from="EnemyPlayerDetection" to="ScoreNoteSpawner" method="spawn_note" binds= [100]]
  124. [connection signal="player_hit" from="EnemyPlayerDetection" to="." method="damage_player"]
  125. [connection signal="player_stomped_on" from="EnemyPlayerDetection" to="." method="damage_player"]
  126. [connection signal="block_bounced" from="BlockBouncingDetection" to="." method="die_from_object"]
  127. [connection signal="block_bounced" from="BlockBouncingDetection" to="ScoreNoteSpawner" method="spawn_note" binds= [100]]
  128. [connection signal="moving_shell_entered" from="ShellDetection" to="." method="die_from_object"]
  129. [connection signal="icicle_detected" from="Node" to="." method="die_from_object"]