Commit 6820d337 authored by Nathan Lovato's avatar Nathan Lovato

Add color rectangles to fill the bottom of the screen on tall displays

parent ae62c5eb
......@@ -93,7 +93,7 @@ tracks/0/keys = {
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
[node name="Game" type="Node2D"]
[node name="Game" type="Node2D" index="0"]
script = ExtResource( 1 )
......@@ -110,6 +110,21 @@ transform = Transform2D( 1, 0, 0, 1, 0, 0 )
texture = ExtResource( 2 )
offset = Vector2( 540, 960 )
[node name="ColorRect" type="ColorRect" parent="Background/Sky" index="0"]
anchor_left = 0.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = 390.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0.878431, 0.235294, 0.423529, 1 )
[node name="Fog" type="Particles2D" parent="Background" index="1"]
modulate = Color( 0.878431, 0.243137, 0.435294, 1 )
......@@ -136,6 +151,9 @@ v_frames = 1
[node name="ScoreLabel" parent="Background" index="2" instance=ExtResource( 4 )]
margin_top = 30.0
margin_bottom = 30.0
[node name="Gnu" parent="." index="1" instance=ExtResource( 5 )]
position = Vector2( 200, 950 )
......@@ -152,7 +170,6 @@ _sections_unfolded = [ "Z Index" ]
[node name="GroundSpawner" type="Node2D" parent="Foreground" index="1"]
editor/display_folded = true
position = Vector2( -180, 1930 )
z_index = 100
script = ExtResource( 8 )
......
......@@ -2,9 +2,11 @@ extends Camera2D
onready var start_offset = position
func _ready():
set_as_toplevel(true)
position = owner.position + start_offset
func _physics_process(delta):
position.x = owner.position.x + start_offset.x
......@@ -67,7 +67,7 @@ anim_offset = 0.0
anim_offset_random = 0.0
anim_loop = false
[node name="PurpleMiasma" type="Sprite" index="0"]
[node name="PurpleMiasma" type="Sprite"]
modulate = Color( 0.356863, 0.133333, 0.65098, 1 )
texture = ExtResource( 1 )
......@@ -103,6 +103,23 @@ position = Vector2( 1090, -260 )
z_index = 100
rect = Rect2( -10, -10, 20, 20 )
[node name="ColorRect" type="ColorRect" parent="." index="2"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 80.0
margin_right = 1080.0
margin_bottom = 430.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 1, 1, 1, 1 )
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="queue_free"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment