mirror of
https://github.com/GDQuest/godot-platformer-2d.git
synced 2026-01-23 02:14:19 +00:00
parent
60f7699361
commit
89c2fe5802
2 changed files with 4 additions and 13 deletions
|
|
@ -102,7 +102,7 @@ gravity_point = true
|
|||
position = Vector2( 308.292, 985.772 )
|
||||
|
||||
[node name="Exit" parent="." instance=ExtResource( 4 )]
|
||||
position = Vector2( 368, 1081.39 )
|
||||
position = Vector2( 184, 1081.39 )
|
||||
|
||||
[node name="Exit2" parent="." instance=ExtResource( 4 )]
|
||||
position = Vector2( 26256, 1648 )
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://assets/environment/background/cloud_big_1.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/environment/background/cloud_small_1.png" type="Texture" id=2]
|
||||
|
|
@ -6,14 +6,6 @@
|
|||
[ext_resource path="res://assets/environment/background/mountains.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/environment/background/sky.png" type="Texture" id=5]
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
script/source = "extends Sprite
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
global_position.y = get_viewport_transform().origin.y + get_viewport_rect().size.y
|
||||
"
|
||||
|
||||
[node name="SkyParallaxBackground" type="ParallaxBackground"]
|
||||
|
||||
[node name="SkyGradient" type="TextureRect" parent="."]
|
||||
|
|
@ -62,16 +54,15 @@ position = Vector2( 1562.91, -96.6282 )
|
|||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="ParallaxBackground3" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2( 0.12, 1 )
|
||||
motion_scale = Vector2( 0.12, 0.1 )
|
||||
motion_mirroring = Vector2( 1917, 0 )
|
||||
|
||||
[node name="Mountains" type="Sprite" parent="ParallaxBackground3"]
|
||||
position = Vector2( 0, 222 )
|
||||
texture = ExtResource( 4 )
|
||||
centered = false
|
||||
offset = Vector2( 0, -445 )
|
||||
region_rect = Rect2( 0, 0, 3834, 445 )
|
||||
region_filter_clip = true
|
||||
script = SubResource( 1 )
|
||||
|
||||
[node name="ParallaxBackground4" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2( 0.15, 0.15 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue