CastleChallengeEnd.tscn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [gd_scene load_steps=9 format=3 uid="uid://c75cko8tyt467"]
  2. [ext_resource type="Script" uid="uid://v5rwovoqjpag" path="res://Scripts/Parts/CastleChallengeEnd.gd" id="1_nomt5"]
  3. [ext_resource type="Texture2D" uid="uid://jucsm1aw6fv5" path="res://Assets/Sprites/Tilesets/ChallengeCastleEnd.png" id="3_nomt5"]
  4. [ext_resource type="Script" uid="uid://bdq0373j5n5o0" path="res://Scripts/Parts/CameraRightLimit.gd" id="8_che3x"]
  5. [sub_resource type="Animation" id="Animation_d5sl2"]
  6. length = 0.001
  7. [sub_resource type="Animation" id="Animation_griru"]
  8. resource_name = "Speak"
  9. length = 5.0
  10. step = 0.1
  11. [sub_resource type="AnimationLibrary" id="AnimationLibrary_y2uvy"]
  12. _data = {
  13. &"RESET": SubResource("Animation_d5sl2"),
  14. &"Speak": SubResource("Animation_griru")
  15. }
  16. [sub_resource type="RectangleShape2D" id="RectangleShape2D_an0bx"]
  17. [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_d5sl2"]
  18. normal = Vector2(-1, 0)
  19. [node name="CastleChallengeEnd" type="Node2D"]
  20. script = ExtResource("1_nomt5")
  21. [node name="Animation" type="AnimationPlayer" parent="."]
  22. libraries = {
  23. &"": SubResource("AnimationLibrary_y2uvy")
  24. }
  25. [node name="StaticBody2D" type="StaticBody2D" parent="."]
  26. position = Vector2(48, -8)
  27. [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
  28. position = Vector2(-4, 0)
  29. shape = SubResource("RectangleShape2D_an0bx")
  30. [node name="CameraRightLimit" type="Node2D" parent="."]
  31. position = Vector2(128, -80)
  32. script = ExtResource("8_che3x")
  33. reset_on_delete = false
  34. metadata/_custom_type_script = "uid://bdq0373j5n5o0"
  35. [node name="CollisionShape2D" type="CollisionShape2D" parent="CameraRightLimit"]
  36. shape = SubResource("WorldBoundaryShape2D_d5sl2")
  37. [node name="Sprite2D" type="Sprite2D" parent="."]
  38. z_index = -10
  39. position = Vector2(0, -32)
  40. texture = ExtResource("3_nomt5")
  41. vframes = 2
  42. [node name="Overlay" type="Sprite2D" parent="Sprite2D"]
  43. z_index = 10
  44. z_as_relative = false
  45. texture = ExtResource("3_nomt5")
  46. vframes = 2
  47. frame = 1
  48. region_rect = Rect2(99, 0, 65, 92)
  49. [node name="Overlay2" type="Sprite2D" parent="Sprite2D"]
  50. show_behind_parent = true
  51. z_index = 10
  52. z_as_relative = false
  53. texture = ExtResource("3_nomt5")
  54. vframes = 2
  55. frame = 1
  56. region_rect = Rect2(0, 80, 80, 48)
  57. [node name="Sprite2D2" type="Sprite2D" parent="Sprite2D"]
  58. show_behind_parent = true
  59. texture = ExtResource("3_nomt5")
  60. vframes = 2