CastleToad.tscn 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. [gd_scene load_steps=16 format=3 uid="uid://c2ntyej6ddm72"]
  2. [ext_resource type="Script" uid="uid://j76u1aqhwey4" path="res://Scripts/Parts/CastleToad.gd" id="1_hytso"]
  3. [ext_resource type="Texture2D" uid="uid://dfildm0squweg" path="res://Assets/Sprites/Players/ToadNPC.png" id="2_griru"]
  4. [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_puq45"]
  5. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_ccewg"]
  6. [ext_resource type="Script" uid="uid://bdq0373j5n5o0" path="res://Scripts/Parts/CameraRightLimit.gd" id="4_griru"]
  7. [ext_resource type="JSON" path="res://Assets/Sprites/Players/ToadNPC.json" id="5_i6fb7"]
  8. [ext_resource type="Script" uid="uid://dt2p68xl462v2" path="res://Scripts/Parts/TextShadowColourChanger.gd" id="11_ccewg"]
  9. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="11_i6fb7"]
  10. [ext_resource type="Script" uid="uid://b8vmbtoaaq5nc" path="res://Scripts/Parts/EditorToggleDetection.gd" id="13_euu1x"]
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_euu1x"]
  12. atlas = ExtResource("2_griru")
  13. region = Rect2(0, 0, 16, 32)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_2ibpj"]
  15. atlas = ExtResource("2_griru")
  16. region = Rect2(16, 0, 16, 32)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_4igc4"]
  18. atlas = ExtResource("2_griru")
  19. region = Rect2(0, 0, 16, 32)
  20. [sub_resource type="SpriteFrames" id="SpriteFrames_jvnky"]
  21. animations = [{
  22. "frames": [{
  23. "duration": 1.0,
  24. "texture": SubResource("AtlasTexture_euu1x")
  25. }, {
  26. "duration": 1.0,
  27. "texture": SubResource("AtlasTexture_2ibpj")
  28. }],
  29. "loop": true,
  30. "name": &"Emote",
  31. "speed": 5.0
  32. }, {
  33. "frames": [{
  34. "duration": 1.0,
  35. "texture": SubResource("AtlasTexture_4igc4")
  36. }],
  37. "loop": true,
  38. "name": &"Idle",
  39. "speed": 5.0
  40. }]
  41. [sub_resource type="RectangleShape2D" id="RectangleShape2D_an0bx"]
  42. [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_d5sl2"]
  43. normal = Vector2(-1, 0)
  44. [node name="CastleToad" type="Node2D"]
  45. script = ExtResource("1_hytso")
  46. [node name="Sprite" type="AnimatedSprite2D" parent="."]
  47. position = Vector2(24, -16)
  48. sprite_frames = SubResource("SpriteFrames_jvnky")
  49. animation = &"Emote"
  50. autoplay = "Emote"
  51. frame_progress = 0.91931444
  52. script = ExtResource("3_puq45")
  53. metadata/_custom_type_script = "uid://caq1qiwmy0mox"
  54. [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
  55. script = ExtResource("4_ccewg")
  56. node_to_affect = NodePath("..")
  57. property_name = "sprite_frames"
  58. resource_json = ExtResource("5_i6fb7")
  59. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  60. [node name="StandardMSG" type="Node2D" parent="."]
  61. unique_name_in_owner = true
  62. [node name="ThankYou" type="Label" parent="StandardMSG"]
  63. visible = false
  64. visibility_layer = 2
  65. offset_left = -96.0
  66. offset_top = -128.0
  67. offset_right = 96.0
  68. offset_bottom = -112.0
  69. theme_override_colors/font_shadow_color = Color(0.298039, 0.298039, 0.298039, 1)
  70. text = "CUTSCENE_CASTLE_TOAD_1"
  71. horizontal_alignment = 1
  72. vertical_alignment = 1
  73. uppercase = true
  74. [node name="AnotherCastle" type="Label" parent="StandardMSG"]
  75. visible = false
  76. visibility_layer = 2
  77. offset_left = -96.0
  78. offset_top = -96.0
  79. offset_right = 96.0
  80. offset_bottom = -68.0
  81. theme_override_colors/font_shadow_color = Color(0.298039, 0.298039, 0.298039, 1)
  82. text = "CUTSCENE_CASTLE_TOAD_2"
  83. vertical_alignment = 3
  84. autowrap_mode = 2
  85. uppercase = true
  86. [node name="SpeedrunMSG" type="Node2D" parent="."]
  87. unique_name_in_owner = true
  88. [node name="ThankYou" type="Label" parent="SpeedrunMSG"]
  89. visible = false
  90. visibility_layer = 2
  91. offset_left = -112.0
  92. offset_top = -128.0
  93. offset_right = 112.0
  94. offset_bottom = -112.0
  95. theme_override_colors/font_shadow_color = Color(0.298039, 0.298039, 0.298039, 1)
  96. text = "CUTSCENE_MARATHON_PEACH_1"
  97. horizontal_alignment = 1
  98. uppercase = true
  99. [node name="Time" type="Label" parent="SpeedrunMSG"]
  100. unique_name_in_owner = true
  101. visible = false
  102. visibility_layer = 2
  103. offset_left = -112.0
  104. offset_top = -112.0
  105. offset_right = 112.0
  106. offset_bottom = -84.0
  107. theme_override_colors/font_shadow_color = Color(0.298039, 0.298039, 0.298039, 1)
  108. text = "CUTSCENE_MARATHON_PEACH_2"
  109. horizontal_alignment = 1
  110. vertical_alignment = 3
  111. autowrap_mode = 2
  112. uppercase = true
  113. [node name="PBMessage" type="Label" parent="SpeedrunMSG"]
  114. unique_name_in_owner = true
  115. visible = false
  116. visibility_layer = 2
  117. offset_left = -112.0
  118. offset_top = -88.0
  119. offset_right = 112.0
  120. offset_bottom = -60.0
  121. theme_override_colors/font_shadow_color = Color(0.298039, 0.298039, 0.298039, 1)
  122. text = "CUTSCENE_MARATHON_PEACH_3"
  123. horizontal_alignment = 1
  124. vertical_alignment = 3
  125. autowrap_mode = 2
  126. uppercase = true
  127. [node name="StaticBody2D" type="StaticBody2D" parent="."]
  128. [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
  129. shape = SubResource("RectangleShape2D_an0bx")
  130. disabled = true
  131. [node name="CameraRightLimit" type="Node2D" parent="."]
  132. position = Vector2(128, -80)
  133. script = ExtResource("4_griru")
  134. metadata/_custom_type_script = "uid://bdq0373j5n5o0"
  135. [node name="CollisionShape2D" type="CollisionShape2D" parent="CameraRightLimit"]
  136. shape = SubResource("WorldBoundaryShape2D_d5sl2")
  137. [node name="TextShadowColourChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  138. script = ExtResource("11_ccewg")
  139. labels = [NodePath("../StandardMSG/ThankYou"), NodePath("../StandardMSG/AnotherCastle"), NodePath("../SpeedrunMSG/ThankYou"), NodePath("../SpeedrunMSG/Time"), NodePath("../SpeedrunMSG/PBMessage")]
  140. metadata/_custom_type_script = "uid://dt2p68xl462v2"
  141. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  142. script = ExtResource("11_i6fb7")
  143. labels = [NodePath("../StandardMSG/ThankYou"), NodePath("../StandardMSG/AnotherCastle"), NodePath("../SpeedrunMSG/ThankYou"), NodePath("../SpeedrunMSG/Time"), NodePath("../SpeedrunMSG/PBMessage")]
  144. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
  145. [node name="LevelEditorToggleDetection" type="Node" parent="." groups=["CastleBridges", "Flagpole"]]
  146. script = ExtResource("13_euu1x")
  147. metadata/_custom_type_script = "uid://b8vmbtoaaq5nc"
  148. [connection signal="toggled" from="LevelEditorToggleDetection" to="." method="_ready"]