RopeElevatorPlatform.tscn 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [gd_scene load_steps=11 format=3 uid="uid://6rp3wgax4i51"]
  2. [ext_resource type="Script" uid="uid://brl0yede1msau" path="res://Scripts/Classes/Entities/Objects/RopeElevatorPlatform.gd" id="1_h7s5k"]
  3. [ext_resource type="Texture2D" uid="uid://bk0p52ttwojml" path="res://Assets/Sprites/Tilesets/Platform.png" id="2_j5n7v"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_rve1b"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Platform.json" id="4_o0yqe"]
  6. [ext_resource type="Texture2D" uid="uid://dt0qtxu2l646n" path="res://Assets/Sprites/Tilesets/Terrain/Overworld.png" id="5_ufhfv"]
  7. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Terrain/TerrainTiles.json" id="5_v7k46"]
  8. [ext_resource type="Script" uid="uid://d0mqkvopasu8k" path="res://Scripts/Classes/Components/SecondQuestReplaceComponent.gd" id="7_4sogk"]
  9. [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="8_bsily"]
  10. [sub_resource type="RectangleShape2D" id="RectangleShape2D_wf1r1"]
  11. size = Vector2(48, 8)
  12. [sub_resource type="RectangleShape2D" id="RectangleShape2D_v7k46"]
  13. size = Vector2(48, 5)
  14. [node name="RopeElevatorPlatform" type="Node2D"]
  15. script = ExtResource("1_h7s5k")
  16. [node name="Platform" type="AnimatableBody2D" parent="."]
  17. sync_to_physics = false
  18. [node name="Sprite" type="NinePatchRect" parent="Platform"]
  19. offset_left = -24.0
  20. offset_right = 24.0
  21. offset_bottom = 8.0
  22. texture = ExtResource("2_j5n7v")
  23. patch_margin_left = 8
  24. patch_margin_right = 8
  25. axis_stretch_horizontal = 1
  26. [node name="ResourceSetter" type="Node" parent="Platform/Sprite" node_paths=PackedStringArray("node_to_affect")]
  27. script = ExtResource("3_rve1b")
  28. node_to_affect = NodePath("..")
  29. property_name = "texture"
  30. mode = 1
  31. resource_json = ExtResource("4_o0yqe")
  32. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  33. [node name="Shape" type="CollisionShape2D" parent="Platform"]
  34. position = Vector2(0, 4)
  35. shape = SubResource("RectangleShape2D_wf1r1")
  36. [node name="PlayerDetection" type="Area2D" parent="Platform"]
  37. [node name="Shape" type="CollisionShape2D" parent="Platform/PlayerDetection"]
  38. position = Vector2(0, -2.5)
  39. shape = SubResource("RectangleShape2D_v7k46")
  40. [node name="ScoreNoteSpawner" type="Node" parent="Platform"]
  41. script = ExtResource("8_bsily")
  42. add_score = true
  43. metadata/_custom_type_script = "uid://5octqlf4ohel"
  44. [node name="Rope" type="NinePatchRect" parent="."]
  45. z_index = -1
  46. offset_left = -8.0
  47. offset_top = -56.0
  48. offset_right = 8.0
  49. texture = ExtResource("5_ufhfv")
  50. region_rect = Rect2(160, 144, 16, 16)
  51. [node name="ResourceSetterNew" type="Node" parent="Rope" node_paths=PackedStringArray("node_to_affect")]
  52. script = ExtResource("3_rve1b")
  53. node_to_affect = NodePath("..")
  54. property_name = "texture"
  55. mode = 1
  56. resource_json = ExtResource("5_v7k46")
  57. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  58. [node name="SecondQuestReplacer" type="Node" parent="."]
  59. script = ExtResource("7_4sogk")
  60. new_scene = "uid://c6ym8t537v4ac"
  61. properties = Array[String](["linked_platform", "rope_top"])
  62. metadata/_custom_type_script = "uid://d0mqkvopasu8k"