mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
Improve background tiling, move parallax layers vertically
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 17 KiB |
@@ -20,6 +20,7 @@ centered = false
|
||||
|
||||
[node name="Clouds" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2( 0.1, 1 )
|
||||
motion_offset = Vector2( -550, 0 )
|
||||
|
||||
[node name="Sprite1" type="Sprite" parent="Clouds"]
|
||||
position = Vector2( 28, 127 )
|
||||
@@ -82,19 +83,21 @@ texture = ExtResource( 5 )
|
||||
centered = false
|
||||
|
||||
[node name="Mountains2" type="ParallaxLayer" parent="."]
|
||||
position = Vector2( 0, 481 )
|
||||
motion_scale = Vector2( 0.2, 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Mountains2"]
|
||||
position = Vector2( 0, 353 )
|
||||
position = Vector2( 0, -114.388 )
|
||||
texture = ExtResource( 1 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 4096, 256 )
|
||||
region_rect = Rect2( 0, 0, 3072, 256 )
|
||||
|
||||
[node name="Mountains1" type="ParallaxLayer" parent="."]
|
||||
position = Vector2( 0, 481 )
|
||||
motion_scale = Vector2( 0.4, 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Mountains1"]
|
||||
position = Vector2( 0, 353 )
|
||||
position = Vector2( 0, -100.279 )
|
||||
texture = ExtResource( 6 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 4096, 256 )
|
||||
region_rect = Rect2( 0, 0, 3072, 256 )
|
||||
|
||||
Reference in New Issue
Block a user