parallax_background.tscn 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. [gd_scene load_steps=7 format=3 uid="uid://c1n07vnm2brb8"]
  2. [ext_resource type="Texture2D" uid="uid://do8unqmg6yew6" path="res://level/background/distant_platforms_2.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://c8jm7s3tbb3b" path="res://level/background/sky.png" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://j28pf8bfgty" path="res://level/background/cloud_1.png" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://kreppu5t30jn" path="res://level/background/cloud_2.png" id="4"]
  6. [ext_resource type="Texture2D" uid="uid://bwhwlduoqnb15" path="res://level/background/cloud_3.png" id="5"]
  7. [ext_resource type="Texture2D" uid="uid://b4lffygwgc7vy" path="res://level/background/distant_platforms_1.png" id="6"]
  8. [node name="ParallaxBackground" type="ParallaxBackground"]
  9. follow_viewport_enabled = true
  10. scroll_base_scale = Vector2(0.2, 0)
  11. [node name="Sky" type="ParallaxLayer" parent="."]
  12. motion_scale = Vector2(1, 0)
  13. motion_offset = Vector2(0, -15)
  14. motion_mirroring = Vector2(400, 0)
  15. [node name="Sprite2D" type="Sprite2D" parent="Sky"]
  16. position = Vector2(0, -80)
  17. scale = Vector2(136.169, 2)
  18. texture = ExtResource("2")
  19. centered = false
  20. [node name="Clouds" type="ParallaxLayer" parent="."]
  21. motion_scale = Vector2(0.1, 0.3)
  22. motion_offset = Vector2(-550, 0)
  23. [node name="CloudGroup1" type="Node2D" parent="Clouds"]
  24. position = Vector2(-780, 0)
  25. [node name="Sprite1" type="Sprite2D" parent="Clouds/CloudGroup1"]
  26. position = Vector2(-200, 120)
  27. texture = ExtResource("3")
  28. centered = false
  29. [node name="Sprite2" type="Sprite2D" parent="Clouds/CloudGroup1"]
  30. position = Vector2(100, 10)
  31. texture = ExtResource("3")
  32. centered = false
  33. [node name="Sprite3" type="Sprite2D" parent="Clouds/CloudGroup1"]
  34. position = Vector2(-60, 40)
  35. texture = ExtResource("4")
  36. centered = false
  37. [node name="Sprite4" type="Sprite2D" parent="Clouds/CloudGroup1"]
  38. position = Vector2(150, 65)
  39. texture = ExtResource("4")
  40. centered = false
  41. [node name="Sprite5" type="Sprite2D" parent="Clouds/CloudGroup1"]
  42. position = Vector2(15, 75)
  43. texture = ExtResource("5")
  44. centered = false
  45. [node name="Sprite6" type="Sprite2D" parent="Clouds/CloudGroup1"]
  46. position = Vector2(225, 35)
  47. texture = ExtResource("5")
  48. centered = false
  49. [node name="CloudGroup2" type="Node2D" parent="Clouds"]
  50. [node name="Sprite1" type="Sprite2D" parent="Clouds/CloudGroup2"]
  51. position = Vector2(-200, 120)
  52. texture = ExtResource("3")
  53. centered = false
  54. [node name="Sprite2" type="Sprite2D" parent="Clouds/CloudGroup2"]
  55. position = Vector2(100, 10)
  56. texture = ExtResource("3")
  57. centered = false
  58. [node name="Sprite3" type="Sprite2D" parent="Clouds/CloudGroup2"]
  59. position = Vector2(-60, 40)
  60. texture = ExtResource("4")
  61. centered = false
  62. [node name="Sprite4" type="Sprite2D" parent="Clouds/CloudGroup2"]
  63. position = Vector2(150, 65)
  64. texture = ExtResource("4")
  65. centered = false
  66. [node name="Sprite5" type="Sprite2D" parent="Clouds/CloudGroup2"]
  67. position = Vector2(15, 75)
  68. texture = ExtResource("5")
  69. centered = false
  70. [node name="Sprite6" type="Sprite2D" parent="Clouds/CloudGroup2"]
  71. position = Vector2(225, 35)
  72. texture = ExtResource("5")
  73. centered = false
  74. [node name="CloudGroup3" type="Node2D" parent="Clouds"]
  75. position = Vector2(390, 0)
  76. [node name="Sprite1" type="Sprite2D" parent="Clouds/CloudGroup3"]
  77. position = Vector2(-200, 120)
  78. texture = ExtResource("3")
  79. centered = false
  80. [node name="Sprite2" type="Sprite2D" parent="Clouds/CloudGroup3"]
  81. position = Vector2(100, 10)
  82. texture = ExtResource("3")
  83. centered = false
  84. [node name="Sprite3" type="Sprite2D" parent="Clouds/CloudGroup3"]
  85. position = Vector2(-60, 40)
  86. texture = ExtResource("4")
  87. centered = false
  88. [node name="Sprite4" type="Sprite2D" parent="Clouds/CloudGroup3"]
  89. position = Vector2(150, 65)
  90. texture = ExtResource("4")
  91. centered = false
  92. [node name="Sprite5" type="Sprite2D" parent="Clouds/CloudGroup3"]
  93. position = Vector2(15, 75)
  94. texture = ExtResource("5")
  95. centered = false
  96. [node name="Sprite6" type="Sprite2D" parent="Clouds/CloudGroup3"]
  97. position = Vector2(225, 35)
  98. texture = ExtResource("5")
  99. centered = false
  100. [node name="CloudGroup4" type="Node2D" parent="Clouds"]
  101. position = Vector2(780, 0)
  102. [node name="Sprite1" type="Sprite2D" parent="Clouds/CloudGroup4"]
  103. position = Vector2(-200, 120)
  104. texture = ExtResource("3")
  105. centered = false
  106. [node name="Sprite2" type="Sprite2D" parent="Clouds/CloudGroup4"]
  107. position = Vector2(100, 10)
  108. texture = ExtResource("3")
  109. centered = false
  110. [node name="Sprite3" type="Sprite2D" parent="Clouds/CloudGroup4"]
  111. position = Vector2(-60, 40)
  112. texture = ExtResource("4")
  113. centered = false
  114. [node name="Sprite4" type="Sprite2D" parent="Clouds/CloudGroup4"]
  115. position = Vector2(150, 65)
  116. texture = ExtResource("4")
  117. centered = false
  118. [node name="Sprite5" type="Sprite2D" parent="Clouds/CloudGroup4"]
  119. position = Vector2(15, 75)
  120. texture = ExtResource("5")
  121. centered = false
  122. [node name="Sprite6" type="Sprite2D" parent="Clouds/CloudGroup4"]
  123. position = Vector2(225, 35)
  124. texture = ExtResource("5")
  125. centered = false
  126. [node name="Mountains2" type="ParallaxLayer" parent="."]
  127. position = Vector2(0, 400)
  128. motion_scale = Vector2(0.1, 0)
  129. motion_mirroring = Vector2(400, 0)
  130. [node name="Sprite2D" type="Sprite2D" parent="Mountains2"]
  131. position = Vector2(0, -64)
  132. texture = ExtResource("1")
  133. centered = false
  134. offset = Vector2(0, -64)
  135. region_enabled = true
  136. region_rect = Rect2(0, 0, 2048, 128)
  137. [node name="Mountains1" type="ParallaxLayer" parent="."]
  138. position = Vector2(0, 400)
  139. motion_scale = Vector2(0.3, 0)
  140. motion_mirroring = Vector2(400, 0)
  141. [node name="Sprite2D" type="Sprite2D" parent="Mountains1"]
  142. position = Vector2(0, -64)
  143. texture = ExtResource("6")
  144. centered = false
  145. offset = Vector2(0, -64)
  146. region_enabled = true
  147. region_rect = Rect2(0, 0, 2048, 128)