Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Flossy Gnu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Purism
Flossy Gnu
Commits
6820d337
Commit
6820d337
authored
Apr 19, 2019
by
Nathan Lovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add color rectangles to fill the bottom of the screen on tall displays
parent
ae62c5eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
3 deletions
+39
-3
game/Game.tscn
game/Game.tscn
+19
-2
game/Gnu/Camera2D.gd
game/Gnu/Camera2D.gd
+2
-0
game/SpriteSpawner/PurpleMiasma.tscn
game/SpriteSpawner/PurpleMiasma.tscn
+18
-1
No files found.
game/Game.tscn
View file @
6820d337
...
...
@@ -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 )
...
...
game/Gnu/Camera2D.gd
View file @
6820d337
...
...
@@ -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
game/SpriteSpawner/PurpleMiasma.tscn
View file @
6820d337
...
...
@@ -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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment