PipeArea.tscn 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [gd_scene load_steps=8 format=3 uid="uid://dkgu57is78lro"]
  2. [ext_resource type="Texture2D" uid="uid://c8yio3lpcsvqu" path="res://Assets/Sprites/UI/PipeArrow.png" id="1_5qh6k"]
  3. [ext_resource type="Script" uid="uid://bqqbvhchdvhyv" path="res://Scripts/Classes/Entities/PipeArea.gd" id="1_w8y82"]
  4. [ext_resource type="Script" uid="uid://ctfbuoxtnnl0q" path="res://Scripts/Classes/Components/EditorPropertyExposer.gd" id="3_0pvle"]
  5. [ext_resource type="Texture2D" uid="uid://dlldh5aks0wff" path="res://Assets/Sprites/Editor/GhostTile.png" id="3_4vmio"]
  6. [ext_resource type="PackedScene" uid="uid://dse5pwhodrqcr" path="res://Scenes/Prefabs/Editor/EditorProperties/TilePropertyIntRangeSpin.tscn" id="4_g36rp"]
  7. [sub_resource type="RectangleShape2D" id="RectangleShape2D_lv0oh"]
  8. size = Vector2(16, 16)
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_5qh6k"]
  10. size = Vector2(4, 4)
  11. [node name="PipeArea" type="Node2D" groups=["Pipes"]]
  12. script = ExtResource("1_w8y82")
  13. target_level = "uid://gbcmqonky63j"
  14. [node name="Visual" type="CollisionShape2D" parent="."]
  15. shape = SubResource("RectangleShape2D_lv0oh")
  16. debug_color = Color(0, 0.6, 0, 0.419608)
  17. [node name="Hitbox" type="Area2D" parent="."]
  18. [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
  19. shape = SubResource("RectangleShape2D_5qh6k")
  20. [node name="ArrowJoint" type="Node2D" parent="."]
  21. [node name="Arrow" type="Sprite2D" parent="ArrowJoint"]
  22. position = Vector2(0, -8)
  23. texture = ExtResource("1_5qh6k")
  24. [node name="RemoteTransform2D" type="RemoteTransform2D" parent="ArrowJoint"]
  25. position = Vector2(0, 8)
  26. remote_path = NodePath("../../Node2D")
  27. update_rotation = false
  28. update_scale = false
  29. [node name="TargetPoint" type="Node2D" parent="ArrowJoint"]
  30. position = Vector2(0, 32)
  31. [node name="Node2D" type="Node2D" parent="."]
  32. z_index = 50
  33. z_as_relative = false
  34. position = Vector2(-3.496911e-07, 8)
  35. [node name="CenterContainer" type="CenterContainer" parent="Node2D"]
  36. use_top_left = true
  37. [node name="Label" type="Label" parent="Node2D/CenterContainer"]
  38. layout_mode = 2
  39. theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
  40. text = "0"
  41. [node name="ColorRect" type="TextureRect" parent="Node2D"]
  42. show_behind_parent = true
  43. offset_left = -16.0
  44. offset_top = -8.0
  45. offset_bottom = 8.0
  46. texture = ExtResource("3_4vmio")
  47. [node name="EditorPropertyExposer" type="Node" parent="."]
  48. script = ExtResource("3_0pvle")
  49. properties = Array[String](["enter_direction", "pipe_id", "target_sub_level", "exit_only"])
  50. properties_force_selector = Dictionary[String, PackedScene]({
  51. "pipe_id": ExtResource("4_g36rp")
  52. })