parallax_bg.tscn 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [gd_scene load_steps=7 format=3 uid="uid://csdn3dwkaprow"]
  2. [ext_resource type="Texture2D" uid="uid://obtbrlptthky" path="res://background/scroll_bg_sky.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://udnu8aekj8mh" path="res://background/scroll_bg_cloud_1.png" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://crkm8guj5obto" path="res://background/scroll_bg_cloud_2.png" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://bb8syr2l4kbwp" path="res://background/scroll_bg_cloud_3.png" id="4"]
  6. [ext_resource type="Texture2D" uid="uid://bitu0xunnhbjf" path="res://background/scroll_bg_fg_2.png" id="5"]
  7. [ext_resource type="Texture2D" uid="uid://bdhblhpgjebrc" path="res://background/scroll_bg_fg_1.png" id="6"]
  8. [node name="ParallaxBg" type="ParallaxBackground"]
  9. scroll_base_scale = Vector2(0.7, 0)
  10. [node name="Sky" type="ParallaxLayer" parent="."]
  11. motion_mirroring = Vector2(400, 0)
  12. [node name="Sprite2D" type="Sprite2D" parent="Sky"]
  13. scale = Vector2(1000, 0.94)
  14. texture = ExtResource("1")
  15. centered = false
  16. offset = Vector2(-15, 0)
  17. [node name="Clouds" type="ParallaxLayer" parent="."]
  18. motion_scale = Vector2(0.1, 1)
  19. motion_mirroring = Vector2(400, 0)
  20. [node name="Sprite1" type="Sprite2D" parent="Clouds"]
  21. position = Vector2(14, 64)
  22. texture = ExtResource("2")
  23. centered = false
  24. [node name="Sprite2" type="Sprite2D" parent="Clouds"]
  25. position = Vector2(202, 12)
  26. texture = ExtResource("2")
  27. centered = false
  28. [node name="Sprite3" type="Sprite2D" parent="Clouds"]
  29. position = Vector2(77, 23)
  30. texture = ExtResource("3")
  31. centered = false
  32. [node name="Sprite4" type="Sprite2D" parent="Clouds"]
  33. position = Vector2(272, 65)
  34. texture = ExtResource("3")
  35. centered = false
  36. [node name="Sprite5" type="Sprite2D" parent="Clouds"]
  37. position = Vector2(127, 79)
  38. texture = ExtResource("4")
  39. centered = false
  40. [node name="Sprite6" type="Sprite2D" parent="Clouds"]
  41. position = Vector2(337, 35)
  42. texture = ExtResource("4")
  43. centered = false
  44. [node name="Mount2" type="ParallaxLayer" parent="."]
  45. motion_scale = Vector2(0.2, 1)
  46. motion_mirroring = Vector2(400, 0)
  47. [node name="Sprite2D" type="Sprite2D" parent="Mount2"]
  48. position = Vector2(0, 113)
  49. texture = ExtResource("5")
  50. centered = false
  51. region_rect = Rect2(0, 0, 400, 128)
  52. [node name="Mount1" type="ParallaxLayer" parent="."]
  53. motion_scale = Vector2(0.4, 1)
  54. motion_mirroring = Vector2(400, 0)
  55. [node name="Sprite2D" type="Sprite2D" parent="Mount1"]
  56. position = Vector2(0, 113)
  57. texture = ExtResource("6")
  58. centered = false
  59. region_rect = Rect2(0, 0, 400, 128)