Skip to content

Commit

Permalink
Added a simple splash screen for the Godot Engine.
Browse files Browse the repository at this point in the history
This commit is for #67, but I will keep the issue open for now
since the logo used is the one from Godot's press kit - in the future
it would be nice to have our own customised version of the logo!

The splash screen has a simple fade-in and fade-out effect, and can
be skipped either by pressing the "any" key, or via a new checkbox
in the options menu under "General".
  • Loading branch information
drwhut committed Mar 7, 2023
1 parent baf95c6 commit bf8cac7
Show file tree
Hide file tree
Showing 17 changed files with 225 additions and 54 deletions.
Binary file removed game/Images/BlackTexture.bmp
Binary file not shown.
Binary file added game/Images/BlackTexture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

importer="texture"
type="StreamTexture"
path="res://.import/BlackTexture.bmp-197d845b0d42dd143a03649ed7fda370.stex"
path="res://.import/BlackTexture.png-78e3701f9f054ebddb353073aeff673c.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Images/BlackTexture.bmp"
dest_files=[ "res://.import/BlackTexture.bmp-197d845b0d42dd143a03649ed7fda370.stex" ]
source_file="res://Images/BlackTexture.png"
dest_files=[ "res://.import/BlackTexture.png-78e3701f9f054ebddb353073aeff673c.stex" ]

[params]

compress/mode=3
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=2
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=0
process/fix_alpha_border=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
detect_3d=true
svg/scale=1.0
1 change: 1 addition & 0 deletions game/Images/GodotLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/Images/GodotLogo.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/GodotLogo.svg-0d3c3f03c93e7a90cab50dc3c80a72fe.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Images/GodotLogo.svg"
dest_files=[ "res://.import/GodotLogo.svg-0d3c3f03c93e7a90cab50dc3c80a72fe.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
9 changes: 9 additions & 0 deletions game/LICENSES.tres
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ directory.
URL: https://www.svgrepo.com/svg/7368/dollar-coin-in-a-hand
- Godot logo
Files:
Images/GodotLogo.svg
Author: Andrea Calabró
License: CC-BY-4.0 International
URL: https://godotengine.org/assets/press/logo_vertical_color_dark.svg
- Help icon
Files:
Expand Down
6 changes: 1 addition & 5 deletions game/Scenes/ImportAssets.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=4 format=2]

[ext_resource path="res://Scripts/ImportAssets.gd" type="Script" id=1]
[ext_resource path="res://Scenes/OptionsMenu.tscn" type="PackedScene" id=2]
[ext_resource path="res://Images/LoadingScreen.jpg" type="Texture" id=3]
[ext_resource path="res://Fonts/Cabin/Modified/Cabin-Regular-Outline.tres" type="DynamicFont" id=4]

Expand All @@ -22,9 +21,6 @@ texture = ExtResource( 3 )
expand = true
stretch_mode = 7

[node name="OptionsMenu" parent="." instance=ExtResource( 2 )]
visible = false

[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_top = 1.0
anchor_right = 1.0
Expand Down
54 changes: 35 additions & 19 deletions game/Scenes/OptionsMenu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -484,79 +484,95 @@ size_flags_horizontal = 3
min_value = 1.0
value = 10.0

[node name="ShowWarnings" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
[node name="SkipSplashScreen" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 98.0
margin_right = 486.0
margin_bottom = 118.0
size_flags_horizontal = 3
text = "Show System Warnings"
text = "Skip Splash Screen"
align = 2

[node name="ShowWarningsCheckbox" type="CheckBox" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
[node name="SkipSplashScreenCheckbox" type="CheckBox" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 94.0
margin_right = 976.0
margin_bottom = 122.0
hint_tooltip = "Skips the Godot Engine splash screen when the game starts."
size_flags_horizontal = 3

[node name="ShowWarnings" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 130.0
margin_right = 486.0
margin_bottom = 150.0
size_flags_horizontal = 3
text = "Show System Warnings"
align = 2

[node name="ShowWarningsCheckbox" type="CheckBox" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 126.0
margin_right = 976.0
margin_bottom = 154.0
hint_tooltip = "Displays system warnings in the chat box."
size_flags_horizontal = 3
pressed = true

[node name="ShowErrors" type="Label" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 130.0
margin_top = 162.0
margin_right = 486.0
margin_bottom = 150.0
margin_bottom = 182.0
size_flags_horizontal = 3
text = "Show System Errors"
align = 2

[node name="ShowErrorsCheckbox" type="CheckBox" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 126.0
margin_top = 158.0
margin_right = 976.0
margin_bottom = 154.0
margin_bottom = 186.0
hint_tooltip = "Displays system errors in the chat box."
size_flags_horizontal = 3
pressed = true

[node name="DividerLeft" type="Control" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 158.0
margin_top = 190.0
margin_right = 486.0
margin_bottom = 158.0
margin_bottom = 190.0
size_flags_horizontal = 3

[node name="DividerRight" type="Control" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 158.0
margin_top = 190.0
margin_right = 976.0
margin_bottom = 158.0
margin_bottom = 190.0
size_flags_horizontal = 3

[node name="OpenAssetsSpace" type="Control" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 162.0
margin_top = 194.0
margin_right = 486.0
margin_bottom = 188.0
margin_bottom = 220.0
size_flags_horizontal = 3

[node name="OpenAssetsButton" type="Button" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 162.0
margin_top = 194.0
margin_right = 976.0
margin_bottom = 188.0
margin_bottom = 220.0
hint_tooltip = "Opens the assets folder in your file explorer."
size_flags_horizontal = 3
text = "Open Assets Folder"

[node name="ReimportSpace" type="Control" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_top = 192.0
margin_top = 224.0
margin_right = 486.0
margin_bottom = 218.0
margin_bottom = 250.0
size_flags_horizontal = 3

[node name="ReimportButton" type="Button" parent="MarginContainer/VBoxContainer/TabContainer/General/GridContainer"]
margin_left = 490.0
margin_top = 192.0
margin_top = 224.0
margin_right = 976.0
margin_bottom = 218.0
margin_bottom = 250.0
hint_tooltip = "Re-imports all assets as if you have started playing for the first time.
Use this if an asset is not working as intended, or an asset has just been added."
size_flags_horizontal = 3
Expand Down
Loading

0 comments on commit bf8cac7

Please sign in to comment.